Chapter 6. Supervision and Monitoring
This chapter will cover fault tolerance lifecycle, supervision strategies, and linking strategies when writing large-scale concurrent programs. The reader is introduced to the "Let It Crash" paradigm and how it is managed in the Actor Model using the various supervision strategies, which are as follows:
- One-For-One strategy
- All-For-One strategy
In addition, we will cover actor state transitions that are not bound by parent-child relationship via lifecycle monitoring.
Let It Crash
When an actor crashes or throws an exception, who is responsible to catch the exception?
One way to look at it is to make sure that every actor knows how to handle failures, but then it becomes more defensive programming. The actor keeps ...