First of all, there is no guarantee that the ActorRef that you return from actorOf is still alive, as its constructor could fail.
Secondly, actorFor can find an actor, but he died right after he was found and just before you started working with him.
Thirdly, it is usually good practice to structure your application so that dependencies are distributed logically, so there is a natural rendez-vous point between your actors.
Hope any of the above help,
happy hAkking!
√
source
share