Cloudflare introduced QuePaxa, a leaderless consensus algorithm designed to improve availability and performance in geographically distributed infrastructure. Traditional consensus protocols like Raft or Paxos often suffer in wide-area networks due to unstable network latency and leader failure recovery overhead. QuePaxa allows any node to propose values and avoids the availability bottlenecks of leader-based protocols.
Read original on InfoQ ArchitectureDistributed consensus is a foundational building block for modern cloud infrastructure, allowing a group of machines to agree on a shared state even when individual nodes fail or network links drop. However, traditional protocols such as Raft, Multi-Paxos, and Viewstamped Replication rely heavily on a stable leader to coordinate state updates.
In wide-area networks (WANs) spanning multiple continents, network latency and packet loss are unpredictable. When deployed globally, leader-based systems frequently struggle because distinguishing between a dead leader and a slow network link is notoriously difficult. The resulting timeouts, leader elections, and recovery phases can lead to significant latency spikes or temporary losses in system availability.
Key Trade-off
In volatile wide-area networks, traditional consensus trades availability for safety during leader elections, frequently causing system stalls when network partitions occur.
To overcome these wide-area limitations, Cloudflare developed QuePaxa, a leaderless consensus algorithm deployed within their experimental distributed consensus service, Meerkat. Instead of routing all proposals through a single designated leader, QuePaxa operates across four phases per round where any node can act as a proposer.
Want the fundamentals behind stories like this? Take the free System Design Academy course with certificate.