O'Reilly logo

Akka Essentials by Munish K. Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Supervision strategies

We saw how every Supervisor actor has four choices when it comes to handling failures. Akka provides two supervision strategies:

  • One-For-One strategy
  • All-For-One strategy

Supervision strategies define how the failure of the child actors are handled, how often the child is allowed to fail, and how long to wait before the child actor is recreated. As the name suggests, One-For-One strategy means the supervision strategy is applied only to the failed child. All-For-One strategy means that the supervision strategy is applied to all the actor siblings as well:

Supervision strategies

Note

One-For-One strategy is the default strategy if a strategy is not ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required