As far as I know the following only two options: 1. Use a requestId (or context object as in Spray) that you pass along with your messages to your actors in the chain. The advantage is that you are not setting a timeout here. But you have to deal with co-relating messages yourself. 2. Use the ask pattern where you need to set a timeout but Akka will take care of getting the matching the request with the response.
I was wondering if there is any other way of doing this ? Thanks -Soumya On Sunday, November 30, 2014 5:39:47 AM UTC-5, Balázs Kossovics wrote: > > Hi Karthik, > > Did you check out the ask pattern ( > http://doc.akka.io/docs/akka/snapshot/scala/actors.html#Ask__Send-And-Receive-Future)? > > It may be the thing you need. > -- >>>>>>>>>> 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.
