You don't have to use ask, just because you want a reply. You can send the request message with tell and let recipient reply to the sender with another tell. If you have intermediate actors you can use use forward. An alternative is to pass the ActorRef of the one that wants the reply in the message.
In this case the JobState actors should perhaps publish their progress instead, e.g. using DistributedPubSub. Regards, Patrik On Thu, Dec 10, 2015 at 10:31 AM, Danny Lesnik <[email protected]> wrote: > I have Consistent hashing router aware cluster where Job Recipient > distributes Job across the Remote Job Workers. > Each Job Worker takes car of several jobs according to key distribution > and each job happens inside job state actor. > Job Receipt actor talks to to job Master actor via Singleton proxy. > According to the diagram below. > > > <https://lh3.googleusercontent.com/-5cmfbWeszXo/VmlCpsvWnII/AAAAAAAAcLI/gC4jdBCJ0oU/s1600/Screen%2BShot%2B2015-12-10%2Bat%2B10.55.44%2BAM.png> > Each few seconds I need to ask some job State actor regarding its current > progress. > > I'm assuming that for this I need to apply ? (ask) pattern for 3 time. > > JobReceipt asks JobMaster, JobMaster asks JobWorker N, JobWorker N asks > JobState. > > Such approach seems to me incorrect and abuses ask pattern in my opinion. > Is there any other option to query job state asynchronously? > > -- > >>>>>>>>>> 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 -- >>>>>>>>>> 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 https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
