Hi,
On Wed, Apr 23, 2014 at 5:44 PM, Richard Cole <[email protected]>wrote: > I'm currently using akka to implement a basic processing workflow. My > MasterActor will receive a message that contains N number of elements > within it. At this point I can divide these elements across Y number of > child actors. If we imagine my elements are peoples names. The child > actors role is to take it's sub-list of names and measure the length of > them, providing the MasterActor with a result once finished. > > What is the most correct way (in the message passing sense) of letting the > MasterActor know that all of it's ChildActors have finished processing > their list of names? > > My main consideration is where there may be multiple requests happening at > once, so a single MasterActor may need to manage multiple requests and > multiple ChildActors. > Let the master create another aggregator actor for each job. It collect the replies from the workers, and then reports back to the master and stops itself when all is done for that job. /Patrik > -- > >>>>>>>>>> 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 [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/d/optout. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw JOIN US. REGISTER TODAY! <http://www.scaladays.org/> Scala <http://www.scaladays.org/> Days <http://www.scaladays.org/> June 16th-18th, <http://www.scaladays.org/> Berlin <http://www.scaladays.org/> -- >>>>>>>>>> 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 [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/d/optout.
