2.2 Spotlight: Remote Death Watch
Watch works as expected independent of where the watched actor is located. You will receive a Terminated message, no matter the reason for the termination.
Under the hood remote death watch uses heartbeat messages and a failure detector to generate Terminated message from network failures and JVM crashes, in addition to graceful termination of watched actor.
Note that watching an ActorRef acquired with actorFor still does not trigger Terminated for lost connections. actorFor is deprecated in favor of actorSelection. Acquire the ActorRef to watch with Identify and ActorIdentity.
Read more about how to tune the failure detector in the documentation.