Take a look at BroadcastGroup
//Create group val paths = List("/user/workers/w1", "/user/workers/w2", "/user/workers/w3") val observers: ActorRef = context.actorOf(BroadcastGroup(paths).props(), "observers")
To notify all observers, simply send a message to observers ActorRef. You can also add and remove observers by sending akka.routing.AddRoutee and akka.routing.RemoveRoutee .
You can find more routing docs.
source share