Search code examples
akkaakka-remote-actorakka-remoting

Can i restart a remote Akka Actor?


I am assuming that A supervisor Actor is Supervising a remote actor. Is there any way to Restart the remote actor if that actor failed while processing the request. And if it is not possible the can anyone suggest me a way to solve this issue. Thank you in advance.


Solution

  • Just set the restarting Supervision Strategy on the parent actor. I doesn't matter that the child actor is deployed remotely. https://doc.akka.io/docs/akka/current/fault-tolerance.html#creating-a-supervisor-strategy