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 ...

Get Akka Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.