8 Clustering

This chapter covers

  • Forming a cluster
  • Cluster monitoring
  • Building a clustered Akka app

An Akka cluster is a group of nodes that communicate peer to peer to form a whole. These nodes are ActorSystems that live in independent JVMs. Thanks to its decentralized structure, a cluster has no single point of failure, is fault-tolerant, and can dynamically increase and decrease the number of nodes.

Distributed applications run in environments that are not fully under your control, such as cloud computing platforms or remote data centers. The larger the cluster, the greater the ability to distribute the load, but the greater the risk of failure. In the event of this inevitable failure, Akka offers clustering and many extensions that provide ...

Get Akka in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.