I am trying to use the pub/sub pattern in a cluster. The documentation on this is VERY poor.
The scenario I am looking for is: 1. an actor subscribes to an event. 2. anywhere in the code, publish a message to all the subscribers on this event in the actor system, without selecting the actors.
From the "existing" documentation, the way to do that is using: DistributedPubSub.Get(Context.System).Mediator;
However, once I initiate a Mediator, I get an "association" exception.
- What am I missing?
- Can someone point me to a working demo?
Thanks