So the reason I didn't think this was cluster sharding is that I actually 
want these supervisor actors (and their supervised children) to be 
REPLICATED on every node (they handle user requests). Basically if there is 
an actor with key 10, I want one actor with key 10 per node. I didn't want 
the messages getting rerouted to another node. So if I have one of these 
actors running on every node how can I do that with sharding? Id imagine I 
would have to be fancy with the shard id but i have no idea how. 

-- Robert

On Wednesday, June 1, 2016 at 3:42:16 PM UTC-5, Konrad Malawski wrote:
>
>
> I was working on a supervisor that lazy creates actors based on some key 
> and then will forward messages to that actor. 
>
> That's Cluster Sharding :-)
>
> http://doc.akka.io/docs/akka/snapshot/scala/cluster-sharding.html 
>
> Technically you can use it on one node too, yeah.
>
>
> Happy hAkking!
> -- 
> Konrad `ktoso` Malawski
> Akka <http://akka.io> @ Lightbend <http://lightbend.com>
>
>
>

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

Reply via email to