Cloudflare introduced QuePaxa, a leaderless consensus algorithm designed to maintain high availability and progress in wide-area networks with volatile latency. Traditional leader-based consensus systems like Raft and Paxos often suffer in global infrastructures due to slow leader election and recovery phases. QuePaxa allows any node to propose values and progress without waiting for leader failure detection, trading off a slight increase in round trips for uninterrupted availability.
Read original on InfoQ CloudAchieving consensus across globally distributed nodes is a fundamental pillar of modern cloud infrastructure. Traditional algorithms like Raft, Multi-Paxos, and Viewstamped Replication rely heavily on a stable leader to coordinate state updates and order transactions. However, in wide-area networks (WANs) like the internet, volatile latency and network partitions make distinguishing between a slow node and a dead node extremely difficult.
The Leader Failure Problem
In traditional leader-based consensus systems, network instability can trigger frequent leader elections. During these election and recovery phases, the system often experiences complete service stalls, severely impacting availability across global regions.
QuePaxa is designed to operate without a permanent, stable leader, allowing any node to act as a proposer and drive consensus forward. The protocol executes across a series of rounds consisting of four main phases:
Moving to a leaderless model introduces distinct trade-offs in distributed systems design. While leader-based systems optimize for minimal message overhead under stable network conditions, QuePaxa optimizes for continuous progress under high volatility. By allowing proactive timeouts where nodes can take over proposal duties, a bad network guess costs additional throughput rather than total system downtime.
Want the fundamentals behind stories like this? Take the free System Design Academy course with certificate.