How does akka.net restart a remote node if that process crashes?

Viewed 304

Suppose that, I have an actor that has a child actor that runs remotely. And suppose that, the child actor's process crashed with an unrecoverable exception like StackOverflowException for some reason or due to a bug.

In this case, how does the parent node in akka.net restart the crashed remote child?

1 Answers

It won't. Child actor lives under a specific address, and if it cannot be resurrected there, it will stay dead. All of the messages directed to it will land in dead letters.

If this is not the case for you, you can always use Akka.Cluster.Sharding, which is a higher level abstraction that automatically manages actor lifecycle.

Related