java - Is possible a ActorRef change without I receive a DeadLetter message? -
i need keep actorref determinated time. while keep "watching" actorref.
is possible, reason, actorref turns invalid, without receive "deadletter" ?
sorry, if question seens strange. think impossible, looking documentation question not clear me.
i think right - seems documentation vague on this. however, consider this:
akka not provide delivery guarantees messaging. that's core of akka philosophy.
consider case using remote death watch. if remote actor terminated , terminated
message sent on network might not message, or might arrive delayed.
in case have stale actorref
you'll able discover problems when send message if subscribe "dead letters". same applies if watch on actor locally , sort of jvm error - there chance won't receive terminated
message or fail process , lost.
to account can build recovery , retries on top of akka.
so in short there rare situations possible. correct question ask how application recover @ every level of failure. hope helps.
Comments
Post a Comment