On Wed, Nov 2, 2016 at 3:15 PM, Harinath Mallepally <[email protected]> wrote:
> If I got it right, this works perfectly fine as long as the consumer is > also a actor, how about doing this from outside of akka? I mean the > invocation of actor.tell happens outside of the akka? > That is exactly where "ask()" is helpful. I generally discourage folks from using ask directly from inside Actors, but it is critical for calling them from the outside. > is it correct to say,If i am sure that my ActorSelection path is correct > (an actor is created with the given name/path) and then may be I just use > the ActorSelection itself. > It's sometimes an appropriate choice, yes -- I do it in one or two places myself. But my understanding is that it's a bit less efficient, the semantics are *slightly* different (relating to Actors getting restarted), and as you said yourself, there are things you can do with ActorRef that you can't do with ActorSelection... -- >>>>>>>>>> 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.
