I have a simple cluster with a service actor named "service" on each node. This service is respectively exposed with ClusterClientRecptionist
to be able to use ist from outside the cluster with ClusterClient
.
A client then registers users, which are created on random nodes of the cluster (because the ClusterClient
dispatches randomly). For example /user/service/user1
on node1 and /user/service/user2
on node2.
What I want to do now, is to send a message to all registered users, independently of their physical location. I thout that was easy by using an ActorSelection
like /user/service/*
. But this only resolves local acotrs on the corresponding node.
I work with Java by the way.