O'Reilly logo

Akka Essentials by Munish K. Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Actor lifecycle monitoring

Akka provides a mechanism to monitor the lifecycle of an actor. An actor is automatically the supervisor for all its children and manages their error conditions. Monitoring provides the ability to monitor the health of any actor other than its own children so that you can manage the impact on your own processing logic. Monitoring is observation of error, while supervision is management of error.

For example, if the Monitor actor wants to be notified of another actor's (worker) termination, the Monitor actor will watch for the reception of the terminated message dispatched by the worker actor upon termination. When the message is received, the Monitor actor can take appropriate action (including trying to instantiate and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required