Hi Jatin, DeathWatch is exactly the right mechanism to use, simply trust Akka to employ a very efficient mechanism to do so. It does not matter how many other actors one actor monitors because the Terminated message is generated by monitoring the communication links with the remote systems (or by the watched actor itself if it terminates regularly).
Regards, Roland 17 jan 2014 kl. 19:47 skrev Jatin Puri <[email protected]>: > I have an application where actors will normally be deployed remotely rather > than locally. There will be one leader actor and the rest will be its junior. > > Now the leader needs to know if the junior is alive or dead or not reachable. > As to distinguish deadwith not reachable I have decided to have a convention > that: If an actor is not reachable, it can be considered dead. (Is this > assumption safe?) > > So now to know if a remote actor is dead or alive: One way is to keep polling > repeatedly. Though I normally use context.watch for this purpose. Now the > question is: How expensive is DeathWatch. What is the inner mechanism? As > load-test would it be safe if I have an actor that is watching 100's of > actors if not thousands? > > What would be the other ideal way to know if a remote actor is alive or dead? > > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> 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/groups/opt_out. Dr. Roland Kuhn Akka Tech Lead Typesafe – Reactive apps on the JVM. twitter: @rolandkuhn -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> 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/groups/opt_out.
