Given 3 nodes. And 30 actors in total. On node 1 only 3 actors subscribe to the topic, on node 2 all 10 actor subscrtibe to the topic, and on node 3 none do.
When you emit a message from the node 2 into pubsub... There will be exactly 1 remote message sent - to node 1, from there on, locally it will be sent to all 3 actors. At the same time, it will be sent to all 10 on node 2, since they're local. No message is sent to node 3. If note 3 sends something into pubsub which actors on 1 and 2 subscribe to. There will be exactly 2 remote messages sent, one to node 1 and one to node 2. Then locally they hit all of the actors who subscribed to that topic. So yes, there is some smarts about how delivery is made there. Please notice that Akka pub-sub is "live" it does not store the topics. Happy hakking -- Konrad `ktoso` Malawski Akka <http://akka.io> @ Lightbend <http://lightbend.com> On 28 October 2016 at 00:15:52, Francis Reed ([email protected]) wrote: I'm interested in using Akka's Distributed Publish Subscribe Cluster feature to publish messages sent over a cluster. When using DistributedPubSubMediator.Publish, are messages broadcasted to all topic subscribers using a full mesh network topology, or is gossip used to optimize the propagation of published messages using a partial network mesh? Thanking you in advance Distributed Publish Subscribe in Cluster http://doc.akka.io/docs/akka/current/java/distributed-pub-sub.html -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
