Supervisor behavior separates domain processing from recovery. Actors keep only happy-path message handling; when an exception occurs, the actor crashes and the supervisor chooses a predefined response. section 5.1.2
Selects one of three responses for the failed actor:
- Restart recreates the actor, while its ActorRef and mailbox continue serving the rest of the application. section 5.1.2
- Resume keeps the same actor instance processing messages and logs the exception through the supervisor. section 5.1.2
- Stop terminates the actor so it no longer processes messages. section 5.1.2
Figure 5.6 Supervisor wrapping an actor’s behavior and deciding on a recovery action after an exception
Shows the supervisor wrapping actor behavior and selecting a recovery action after an exception. section 5.1.2
