Search⌘ K
AI Features

Zookeeper's ZAB Protocol

Learn how Zookeeper's ZAB protocol manages leader election, synchronizes replicas, broadcasts updates, and recovers from failures. Understand the role of epochs and counters in transaction ordering and the protocol's four essential phases to ensure reliable distributed coordination.

As mentioned previously, the Zookeeper atomic broadcast protocol (ZAB) is used to agree on a leader in the ensemble, synchronize the replicas, manage the broadcast of update transactions, and recover from a crashed state to a valid state.

This protocol shares a lot of characteristics with other consensus protocols, such as Paxos or Raft.

In ZAB, transactions are identified by a specific type of identifier, called zxid. This identifier consists of two parts <e,c><e, c> ...