I don't think that it's necessary to register it twice. You can just go with registerService. Right it they would just overwrite itself in the DistributedPubSubMediator.
B/ On 19 August 2014 at 06:51:55, JasonQ ([email protected]) wrote: Thanks Björn. So if I have an Actor which need receive message from both a Mediator and a ClusterClient, should I call both put and registerService in case there's some change in the future or only call registerService is enough? On Monday, August 18, 2014 8:16:44 PM UTC+8, Björn Antonsson wrote: Hi, The registerService call right now only uses DistributedPubSubMediator.Put. There is no difference at all at the moment. There might be in the future though. B/ On 18 August 2014 at 07:10:31, JasonQ ([email protected]) wrote: Hello, Per my understanding after going through AKKA document, if I want to use mediator to send message to some actor in the cluster , I need use DistributedPubSubMediator.Put. When using ClusterClient.send, there's sample code using registerService in the doc instead of DistributedPubSubMediator.Put. Function wise, is there any difference between ClusterReceptionistExtension(system).registerService and DistributedPubSubMediator.Put? -- >>>>>>>>>> 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. -- Björn Antonsson Typesafe – Reactive Apps on the JVM twitter: @bantonsson -- >>>>>>>>>> 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. -- >>>>>>>>>> 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.
