You should read up on cluster sharding:
http://doc.akka.io/docs/akka/current/scala/cluster-sharding.html

Such "to the same Actor, given an identifier" is exactly what it is designed 
for.

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Typesafe

On 28 November 2015 at 11:59:52, Karthik Deivasigamani (karthi...@gmail.com) 
wrote:

We have a system where we require all requests pertaining to a given user-id be 
processed in order and by the same actor. For example : if we get requests for 
userid - u1,u2,u3,u1,u4,u5,u5 in that order then the requests for user-id u1 
must always go to the same actor so that they can processed in the order they 
were receive. What's the best way to accomplish this in scala-akka? Any 
examples?
--
>>>>>>>>>> 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.

-- 
>>>>>>>>>>      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.

Reply via email to