bruno darrigues
unread,May 22, 2012, 6:43:48 AM5/22/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Akka User List
Hi,
Actually, i can instanciate an actor on sevral nodes via a router and
based on the number of instances, the router could route on the
different replicated node.
However, my need is to have one parent to allocate unique actors among
several nodes.
per example a service-factory-a wich create instances service-a-
instance-a1 on node 0, service-a-instance-2 on node1, ....
each children are in for akka://Node0/service-a/service-a-instance-1,
akka://Node0/service-a/service-a-instance-2, ...
actualy i can't use router because if i specify nb-instance 1, it only
create local instance.
may i developp a custom router to allocate a single actor among
nodes ? may i wait for cluster snapshot ?
in a distributed application, the key point is to identify the unique
actor who is able to create new instances, is it a stupid feature to
have a custom router to route some kind of message to the leader of
the cluster (wich could change in the time) ?
Best regards
Bruno