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

Fault tolerance

The key to a fault-tolerant application is to make use of the supervisors and lifecycle monitoring techniques. These techniques can be used to manage not only the local actors, but also remote actors. The supervisor hierarchy can be composed of local and remote actors. Similarly, the application can monitor remote actors for Termination messages. We cover remote actors in more detail in Chapter 9, Remote Actors.

In a large, distributed application, actors can fail when:

  • There is a logic programming error when the message is received (for example, you received a message with incomplete data)
  • There is a failure of an external resource on which the actor is dependent (for example, database connection, socket connection, file connection, ...

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