Hi Kartheek,
If it work for you, you can attach a Id with each request.
--
>>>>>>>>>> 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+...@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.
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.
30 nov 2014 kl. 14:53 skrev Soumya Simanta <soumya....@gmail.com>: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 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.
30 nov 2014 kl. 16:34 skrev Soumya Simanta <soumya....@gmail.com>:Roland,Thanks for explaining this very nicely. This is consistent with my understanding.I try to avoid using the ask pattern (if I can) because of the timeout issue.So basically if you have complete control over all your messages, it better to explicitly pass a unique message identifier and use that to track the request-response flow.Do you agree with this recommendation?