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 <t3h...@gmail.com<javascript:>
> > 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 akka-user+...@googlegroups.com <javascript:>.
>> To post to this group, send email to akka...@googlegroups.com<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 the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to