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].
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.

Reply via email to