thx Patrik On Sunday, 2 February 2014 19:50:46 UTC+2, Patrik Nordwall wrote: > > > > On Sun, Feb 2, 2014 at 4:12 PM, Yaroslav Klymko <[email protected]<javascript:> > > wrote: > >> Took a look on >> http://letitcrash.com/post/28901663062/throttling-messages-in-akka-2 >> So I want to have a ActorIdentity reply or absence of reply from Consumer >> as a trigger for throttling. >> Thus I'm interested whether it's safe to use it. >> > > It is possible to use it as you describe. > /Patrik > > >> >> On 2 February 2014 15:40, Oleg Zhurakousky >> <[email protected]<javascript:> >> > wrote: >> >>> So, 'throttling' would be a better term for that. >>> Have you look at this: >>> http://letitcrash.com/post/28901663062/throttling-messages-in-akka-2 >>> >>> Cheers >>> Oleg >>> >>> >>> On Sun, Feb 2, 2014 at 8:31 AM, Yaroslav Klymko >>> <[email protected]<javascript:> >>> > wrote: >>> >>>> I would not say "to batch", just to have ability to not overfill >>>> consumer's mailbox if it's slow, to avoid OutOfMemory >>>> >>>> >>>> On Sunday, 2 February 2014 15:27:50 UTC+2, Oleg Zhurakousky wrote: >>>> >>>>> So, what you are saying is that you want to batch up and process N >>>>> amount of messages before the next batch. Is that correct? >>>>> >>>>> Cheers >>>>> Oleg >>>>> >>>>> >>>>> On Sun, Feb 2, 2014 at 7:56 AM, Yaroslav Klymko <[email protected]>wrote: >>>>> >>>>>> Hi guys, >>>>>> >>>>>> I'm wondering are there any drawback on using Identify >>>>>> and ActorIndentity reply for flow control mechanism. >>>>>> Why I want to use Identify & ActorIndentity - because those are >>>>>> implicitly implemented in all actor. >>>>>> >>>>>> So let's say producer is sending messages with high rate to consumer, >>>>>> and after each N messages sent producer will send Identify and more N >>>>>> messages, thus ActorIndentity reply means that actor finished with all >>>>>> previous messages, and producer can send more N messages. >>>>>> Idea that slow consumer will have up to 2N messages + Identify >>>>>> It will give me ability to decrease pressure on consumer and better >>>>>> throughput then Pull or Ack based approaches >>>>>> >>>>>> Consumer actor state example with N=2 >>>>>> >>>>>> *PROCESSING* >>>>>> msg1 >>>>>> *MAILBOX* >>>>>> msg2 >>>>>> Identify >>>>>> msg3 >>>>>> msg4 >>>>>> >>>>>> after a while: >>>>>> >>>>>> *PROCESSING* >>>>>> msg3 >>>>>> *MAILBOX* >>>>>> msg4 >>>>>> msg5 >>>>>> Identify >>>>>> msg6 >>>>>> msg7 >>>>>> >>>>>> >>>>>> Thanks in advance. >>>>>> >>>>>> -- >>>>>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>> >>>>>>>>>> Search the archives: https://groups.google.com/ >>>>>> group/akka-user >>>>>> --- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Akka User List" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To post to this group, send email to [email protected]. >>>>>> >>>>>> Visit this group at http://groups.google.com/group/akka-user. >>>>>> For more options, visit https://groups.google.com/groups/opt_out. >>>>>> >>>>> >>>>> -- >>>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>> >>>>>>>>>> Search the archives: >>>> https://groups.google.com/group/akka-user >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Akka User List" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected] <javascript:>. >>>> >>>> To post to this group, send email to [email protected]<javascript:> >>>> . >>>> Visit this group at http://groups.google.com/group/akka-user. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>> >>>>>>>>>> Search the archives: >>> https://groups.google.com/group/akka-user >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Akka User List" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/akka-user/4VI4My8tECo/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected] <javascript:>. >>> >>> To post to this group, send email to [email protected]<javascript:> >>> . >>> Visit this group at http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> >> >> -- >> *Yaroslav Klymko* | *Software Engineer* >> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >> --- >> You received this message because you are subscribed to the Google Groups >> "Akka User List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > > Patrik Nordwall > Typesafe <http://typesafe.com/> - Reactive apps on the JVM > Twitter: @patriknw > >
-- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
