In order to directly send from whoever the destination is back to the original sender (i.e. the user of the ClusterClient) the destination’s ActorSystem would have to be able to directly connect to that original sender ActorSystem—which is outside of the cluster. It is conceivable that e.g. firewall rules are in place the allow only one external entry point into the cluster and then this direct connection would not work. Therefore the ClusterClient forms one single tunnel into the cluster through which all messages are routed.
Regards, Roland > 9 jul 2015 kl. 21:28 skrev [email protected]: > > here is the code > https://github.com/akka/akka/blob/master/akka-cluster-tools/src/main/scala/akka/cluster/client/ClusterClient.scala#L523 > > https://github.com/akka/akka/blob/master/akka-cluster-tools/src/main/scala/akka/cluster/client/ClusterClient.scala#L612 > I don't see why it is necessary to wrap the client in a tunnel actor other > than setting a timeout. How does the tunnel protect the client? > whats wrong with pubSubMediator.tell(msg, sender()) > > Am Donnerstag, 9. Juli 2015 19:23:15 UTC+2 schrieb [email protected]: > In http://doc.akka.io/docs/akka/2.3.0/contrib/cluster-client.html > <http://doc.akka.io/docs/akka/2.3.0/contrib/cluster-client.html> there is > following sentence: > > "Response messages from the destination actor are tunneled via the > receptionist to avoid inbound connections from other cluster nodes to the > client" > > Could somebody explain why this is necessary? I am struggling with the phrase > "avoid inbound connections".... > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ <http://akka.io/docs/> > >>>>>>>>>> Check the FAQ: > >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> <http://doc.akka.io/docs/akka/current/additional/faq.html> > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > >>>>>>>>>> <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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/akka-user > <http://groups.google.com/group/akka-user>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. Dr. Roland Kuhn Akka Tech Lead Typesafe <http://typesafe.com/> – Reactive apps on the JVM. twitter: @rolandkuhn <http://twitter.com/#!/rolandkuhn> -- >>>>>>>>>> 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 http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
