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:
One-For-One strategy is the default strategy if a strategy is not ...