Paxos / Raft Consensus Algorithms

Protocols that enable a collection of unreliable processes to agree on a single value or sequence of values (log) despite failures, forming the foundation of strongly consistent distributed systems.

Method

ZooKeeper uses Zab. Raft majority-based direct commitment has a current-term restriction.

Applications

Distributed databases (coordination, replication), configuration management (etcd, Consul, ZooKeeper), cloud control planes, blockchain consensus variants, any system requiring agreement under failures.

Advantages

Proven safety properties; practical implementations widely deployed; Raft’s design prioritizes understandability and operability; foundational for reliable distributed systems.

Limitations

Performance limited by majority round-trips; leader bottlenecks; complex correct implementation (especially Paxos); availability vs. consistency trade-offs under partitions (CAP); not suitable for very high-throughput open-membership settings without extensions. ZooKeeper uses Zab. Raft majority-based direct commitment has a current-term restriction.

Alternatives

Viewstamped Replication, Zab, Byzantine-tolerant protocols (PBFT, HotStuff), gossip-based eventual consistency, CRDTs for specific data types. Top Algorithms & Models — Part 2 (101–200) Research Compendium

Editorial clarification

ZooKeeper uses Zab. Raft majority-based direct commitment has a current-term restriction.

Sources

Educational reference only, not professional advice.

All algorithms