var receiver = system.ActorOf(PNetObserverActor.Props(subject), name);
Send specifies a message that should be delivered only to one subscriber in target topic. Actor choice is based on specified RoutingLogic, which is random by default. Additionally with localAffinity flag set we may define to prefer sending the messages to subscribers on the same node if possible i.e. for performance reasons.
Put
Send(actorPath, message, localAffinity: bool)
from Scala docs:
The message will be delivered to one recipient with a matching path, if any such exists in the registry. If several entries match the path because it has been registered on several nodes the message will be sent via the supplied RoutingLogic (default random) to one destination.
Actors may also be subscribed to a named topic with an optional property (group). If subscribing with a group name, each message published to a topic with the (sendOneMessageToEachGroup) flag is delivered via the supplied RoutingLogic (default random) to one actor within each subscribing group. If all the subscribed actors have the same group name, then this works just like Send and all messages are delivered to one subscriber. If all the subscribed actors have different group names, then this works like normal Publish and all messages are broadcast to all subscribers.
[Missing <summary> documentation for "T:Akka.Cluster.Tools.PublishSubscribe.Publish"]
[Missing <summary> documentation for "T:Akka.Cluster.Tools.PublishSubscribe.Publish"]
Meh someone else ... @sean-gilliam ... will do it ;P