RE: [akka-user] Best Strategy to Aggregate Multiple Actors Response

2015-06-26 Thread Matheus Lima
Yes. And it is a simple form do avoid problems with message stream.

-Mensagem Original-
De: Konrad Malawski kt...@typesafe.com
Enviada em: ‎26/‎06/‎2015 09:32
Para: Akka User List akka-user@googlegroups.com
Assunto: Re: [akka-user] Best Strategy to Aggregate Multiple Actors Response

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.


On Wed, Jun 24, 2015 at 2:21 PM, Matheus Lima matheuslima...@gmail.com wrote:

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-user@googlegroups.com
Assunto: [akka-user] Best Strategy to Aggregate Multiple Actors Response


Does this work for you?
http://doc.akka.io/docs/akka/snapshot/contrib/aggregator.html

-- 
  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+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/d/optout.

-- 
 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 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/d/optout.






-- 

Cheers,
Konrad 'ktoso' Malawski

Akka @ Typesafe
-- 
 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+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/d/optout.

-- 
  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 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/d/optout.


Re: [akka-user] Best Strategy to Aggregate Multiple Actors Response

2015-06-26 Thread Konrad Malawski
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.

On Wed, Jun 24, 2015 at 2:21 PM, Matheus Lima matheuslima...@gmail.com
wrote:

 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 jimhazen2...@gmail.com
 Enviada em: ‎24/‎06/‎2015 00:23
 Para: akka-user@googlegroups.com
 Assunto: [akka-user] Best Strategy to Aggregate Multiple Actors Response

 Does this work for you?
 http://doc.akka.io/docs/akka/snapshot/contrib/aggregator.html

 --
   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+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/d/optout.

 --
  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 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/d/optout.




-- 
Cheers,
Konrad 'ktoso' Malawski
Akka http://akka.io/ @ Typesafe http://typesafe.com/

-- 
  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 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/d/optout.


RE: [akka-user] Best Strategy to Aggregate Multiple Actors Response

2015-06-24 Thread Matheus Lima
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

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

Does this work for you?
http://doc.akka.io/docs/akka/snapshot/contrib/aggregator.html

-- 
  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+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/d/optout.

-- 
  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 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/d/optout.


[akka-user] Best Strategy to Aggregate Multiple Actors Response

2015-06-23 Thread Jim Hazen
Does this work for you?
http://doc.akka.io/docs/akka/snapshot/contrib/aggregator.html

-- 
  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 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/d/optout.


[akka-user] Best Strategy to Aggregate Multiple Actors Response

2015-06-23 Thread matheuslimaufc
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. 

-- 
  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 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/d/optout.