Best Strategy to Aggregate Multiple Actors Response

89 views
Skip to first unread message

matheus...@gmail.com

unread,
Jun 23, 2015, 9:20:07 PM6/23/15
to akka...@googlegroups.com
Hello,
I Have an actor A. The Actor A send a message to B, C, D, and E. How can I aggregate the responses from this actors? I don't want use ask. The actor A also should process another request when receive the responses of all actors (B, C, D and E). What is the best way?
Thank you. 

Jim Hazen

unread,
Jun 23, 2015, 11:22:54 PM6/23/15
to akka...@googlegroups.com

Matheus Lima

unread,
Jun 24, 2015, 8:22:04 AM6/24/15
to akka...@googlegroups.com
Seems interesting
Aggregator actor use the pattern actor per request? The examples provided by documentation always finish the processing for one request calling context.stop
Thanks

De: Jim Hazen
Enviada em: ‎24/‎06/‎2015 00:23
Para: akka...@googlegroups.com
Assunto: [akka-user] Best Strategy to Aggregate Multiple Actors Response

--
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      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/y5aiioz6BC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Konrad Malawski

unread,
Jun 26, 2015, 8:32:50 AM6/26/15
to Akka User List
If I remember it correctly the Aggregator pattern "has done it's job" once it has aggregated the values,
thus it stops itself. You could use these in the actor-per-request model, but it's of course possible to have more aggregators inside as well.

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.

To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,
Konrad 'ktoso' Malawski

Matheus Lima

unread,
Jun 26, 2015, 8:49:59 AM6/26/15
to akka...@googlegroups.com
Yes. And it is a simple form do avoid problems with message stream.

De: Konrad Malawski
Enviada em: ‎26/‎06/‎2015 09:32
Para: Akka User List
Assunto: Re: [akka-user] Best Strategy to Aggregate Multiple Actors Response

Reply all
Reply to author
Forward
0 new messages