Supervision in simple terms means overseeing the performance or operations of a group. In our case, we are creating hundreds of actors to do work for us, it is possible that some of these actors might fail or throw exceptions in certain situations.
Supervisors provide a dependency relationship between the actors – in the sense that every actor has a supervisor attached to it. The supervisor is responsible for delegating the tasks to the actors – called subordinates and manage the lifecycle of the Subordinate actors. This is shown in the following image:
If any of the subordinates report a failure or exception, the supervisor is informed ...