akka/akka — pull request #1452 by jboner (2013-05-20 11:50:04+00:00)
Title: Added optional property (skipSenderNode) to PubSub.SendToAll

Deciding if the SendToAll message should be sent to a matching path on the sender cluster node or not. +Test +Docs.

The use case for this is something I have run into lately. You start up a subscriber service on all cluster nodes (f.e. to keep data in sync). But before you publish your data through SendToAll you rather store the state directly on your local node instead of paying unnecessary bandwidth and latency of sending it through the pubsub service. Then when you broadcast you don't want to send the data to your local node once more, but only to all the other subscribers.