I am looking into using Akka Remoting, I am using akka 2.2.3.I have to communicate with a bunch of remote actors. I have a few questions about the best way to do this:1. Do I simply send messages through an Actor Selection itself (there is a tell on actor selection)? My concern is that this will not perform as well as using an Actor Ref directly.
Also, I am concerned about the behavior in the event that the remote actor is down, does the Actor Selection deliver the messages to dead letter until the remote actor comes back to life?
- if not -2. Do I instead get an Actor Ref and use that actor ref to send messages (using the resolve method or Identify)? My concern here is, what happens to the ActorRef if the remote actor dies? Do we "need" to watch the remote actor and handle Terminated?
- are there other options? -It would "seem" as though option 1 insulates me from having to care if the remote actor is there or not, because in my use case, I really don't care.Option 2 seems like I have to do my own gymnastics to handle remote actor availability, but perhaps is better performing (or maybe is the recommended approach?)
Any help is greatly appreciated.Thanks!
--
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
Patrik Nordwall
Typesafe - Reactive apps on the JVM
Twitter: @patriknw
Thanks Patrik!Just one more question, what do you mean by "If you use remote sends the actor selection traversal will unlikely be the bottleneck"?