Cloudflare Introduces QuePaxa, a Leaderless Consensus Algorithm

Cloudflare has introduced QuePaxa, a novel consensus algorithm designed to maintain progress without relying on a stable leader. Unlike traditional leader-based approaches, QuePaxa allows nodes to make progress despite leader failures, potentially reducing delays caused by leader election and recovery.
Cloudflare is implementing QuePaxa in Meerkat, an experimental distributed consensus service aimed at improving coordination across geographically distributed infrastructure. Research engineers João Pedro Leite, Bob Halley, and James Larisch noted that QuePaxa is an unusual choice, as most consensus systems typically use established algorithms like Raft or Paxos, which are well understood and have mature implementations.
However, these common algorithms often struggle in wide-area networks with volatile connectivity and latency, which is a challenge for systems like Meerkat. Consensus algorithms are essential for enabling a group of machines to agree on a shared value, even when some machines fail or become disconnected.
QuePaxa operates in four phases per round. During each phase, proposers send their current proposals to all recorders and advance after receiving replies from a majority. They progressively adopt and spread the highest-priority proposals, checking for sufficient agreement to decide on a value. If no decision is reached, the best-known proposal is carried into the next round.
Leite, Halley, and Larisch shared their experiences with Meerkat, stating that they have witnessed the positive impact of QuePaxa on the system’s overall performance and availability. They emphasized that Meerkat continuously processes requests, even when the leader crashes or becomes slow, and has never completely stalled.
Unlike traditional consensus algorithms, QuePaxa does not depend on a functioning leader to make progress. Any node can propose a value, and a short, configurable timeout allows other nodes to take over proactively without waiting for a leader failure to be detected. Manas Maheshwari, a senior software engineer at Apex, commented that the real advantage of this approach is that it minimizes the cost of throughput due to incorrect assumptions about failures.
Some discussions on Reddit have raised questions about how Cloudflare avoids having multiple leaders in the QuePaxa system.
Source: InfoQ