Cloudflare recently explained why it chose QuePaxa to power Meerkat, an experimental distributed consensus service meant for its internal global control plane. Most production systems still rely on mature algorithms such as Raft or Paxos-style protocols. QuePaxa is different: it was published in academic research at SOSP 2023 by Tennage, Băsescu, and co-authors, and Cloudflare later selected it because Meerkat must run across continents where latency jumps and links break.
This article separates three ideas that are easy to mix up. QuePaxa is the consensus algorithm from 2023 research. Meerkat is Cloudflare's experimental service that uses QuePaxa. Meerkat is not described as generally available public product software in Cloudflare's write-up. The goal here is to show, in simple words, how QuePaxa differs from Raft and Paxos, and why that difference matters for global systems.
What is distributed consensus?
Imagine three servers that all keep a shared key-value store. A client asks to set user:42 to active. If one server writes that update and another never sees it, the cluster no longer agrees on reality. Distributed consensus is the process that forces the servers to agree on the same ordered sequence of events.
Consensus usually feeds a replicated state machine. Each replica keeps a log. Every log entry is a command, such as get or put. If every replica applies the same commands in the same order, they build the same state. Systems like Consul, etcd, and Apache ZooKeeper follow this pattern. Cloudflare says Meerkat uses the same idea for a consensus-powered log that can expose applications such as a key-value store.
Two words matter here. Safety means replicas never decide conflicting values for the same decision. Liveness means the system eventually makes progress. A protocol can be safe but slow or stuck under bad network conditions. That gap is a big part of Cloudflare's story.
Consensus also needs fault tolerance. With a majority quorum, more than half of the replicas must agree. In a five-server cluster, two can fail and the remaining three can still decide. If the network becomes unreliable, messages arrive late or vanish. Servers then struggle to tell a crashed machine from a slow link. That confusion is painful for leader-based designs.
Why traditional consensus struggles on a global network
Many consensus systems are designed for smaller, more local networks. Meerkat is different. Cloudflare designed it for a global environment where replicas may sit on different continents and face high, changing latency.
Cloudflare also points to a hard lesson from 2020: a partial failure of a core network switch caused a consensus-powered system to degrade badly, and the dashboard ran much slower than usual for hours. The company says the system lost no data, but writes stalled until the issue was fixed. For Meerkat, that kind of write unavailability is unacceptable.
Two common problems show up in this setting:
- Destructive interference: several proposers or election candidates keep blocking each other from winning a majority, so nobody finishes.
- Fault detection mistakes: a leader may only be slow, but followers treat it as dead and start elections. Elections can continue even after the original glitch is gone.
Think of two people trying to book the same meeting room through a slow phone line. Each keeps interrupting the other with a newer request number. The room stays empty even though both want to reserve it. That is the everyday picture of destructive interference.
How Paxos handles distributed consensus
Paxos is one of the classic consensus designs. In a simplified view, there are proposers and acceptors. A proposer wants acceptors to accept one value. Progress usually needs a majority of acceptors.
A common explanation uses two phases:
- Prepare: a proposer sends a ballot number to a majority of acceptors. That ballot acts like a promise: acceptors will ignore older, lower ballots.
- Accept: the proposer sends its value with that ballot. If a majority still holds that ballot, they accept the value, and the proposer can decide.
Ballot numbers create order. A higher ballot can interrupt a lower one. That protects safety, but it can hurt liveness when several proposers race. Proposer A starts Prepare with ballot 5. Before A finishes Accept, proposer B starts Prepare with ballot 6. Acceptors move to the newer ballot. A fails. Then A retries with ballot 7 and blocks B. The cluster can thrash even when every machine is alive.
Paxos is not unsafe or useless. It is a foundational protocol, and many systems still depend on Paxos ideas. The practical issue Cloudflare highlights is that competing proposers, plus a messy network, can prevent steady progress unless the deployment adds extra structure, often a single leader.
How Raft handles leader election
Raft was designed to make consensus easier to understand. It is widely used and proven in production. Raft makes one replica the leader. Followers accept log entries from that leader. The leader sends heartbeats so followers know it is alive.
If followers miss heartbeats past an election timeout, they become candidates and ask for votes. A candidate that wins a majority becomes the new leader and resumes log replication. While a healthy leader and a calm network are in place, Raft can decide quickly because one node coordinates proposals.
The hard part appears when several candidates wake up at once. Each can steal votes from the others. No candidate may reach a majority, so elections repeat. Cloudflare describes this as destructive interference returning through leader recovery. A short network blip can start elections that outlast the blip itself. That pattern is sometimes called a metastable failure: the original cause is gone, but the recovery loop keeps disrupting normal work.
Fault detection also depends on timing. In an asynchronous network, there is no guaranteed upper bound on message delay. A late heartbeat and a crashed leader can look the same. Raft deployments often set conservative election timeouts, such as several round trips, to avoid false alarms. On a global path measured in hundreds of milliseconds, detecting a real leader failure can take around a second, and the system makes little progress until a new leader is elected.
None of this means Raft failed as a technology. It means Raft's leader model assumes you can detect and replace leaders in a way that fits your network. Cloudflare concluded that Meerkat's Internet-scale path did not fit that assumption well enough. For a deeper technical read, see the Raft research paper.
What is QuePaxa?
QuePaxa is a newer consensus algorithm published in 2023. Cloudflare says it searched for protocols designed for asynchronous environments and landed on QuePaxa. You can find the research record through its DOI: 10.1145/3600006.3613150.
QuePaxa's design philosophy is cooperation instead of endless competition. Proposers submit values. Recorders store what they see and help spread proposals. Each non-leader proposal gets a random priority. When a proposer learns about a higher-priority proposal from a majority of recorders, it adopts that proposal and starts supporting it. Proposers therefore push toward the best-known proposal instead of locking each other out forever.
QuePaxa still has an optional leader. The leader uses the highest possible priority and is the only proposer that can decide in a single round trip when its proposal reaches a majority first. If the leader is slow or missing, other proposers can still make progress. Clients are not forced to talk only to the leader.
Cloudflare also describes request hedging: clients can send a proposal request broadly, while non-leader paths wait briefly so the leader gets a chance to win the fast path. That wait is a local hedge timeout, not Raft-style fault detection tied to network round-trip expectations. A short hedge can increase the number of active proposers. More proposers may cost bandwidth and sometimes need more phases, but the system does not have to freeze while waiting to declare the leader dead.
How the four phases of QuePaxa work
QuePaxa runs in rounds. Each round has four phases. At the start of a phase, proposers broadcast their current adopted proposal to recorders. After hearing from a majority of recorders, a proposer moves to the next phase. If nobody decides by the end, a new round begins.
Phase 0: Propose and Adopt
Proposers pick priorities. Non-leader priorities are random. The leader's priority is fixed at the top. Proposers send proposals to recorders and adopt the highest-priority proposal returned by a majority.
If this is the first round and the leader learns that its proposal reached a majority of recorders first, the leader can decide immediately. That is the fast path. It is safe because of majority intersection: any two majorities share at least one recorder. Later proposers that query a majority will meet the leader's proposal and adopt it, because it has the highest priority.
Phase 1: Spread
When the fast path does not fire, proposers spread the proposal they adopted in Phase 0 to a majority of recorders. Recorders remember the highest-priority proposal they observe. This step makes it hard for a later phase to decide a weaker proposal, again because majorities overlap.
Phase 2: Check and Decide
Proposers ask a majority of recorders for the highest-priority proposal seen in Phase 1. If that answer matches the proposer's own adopted proposal, the proposer decides. If the answers conflict, the proposer cannot decide yet.
Example: a second proposer reaches some recorders before the leader. The leader fast path is blocked. Both proposers adopt high-priority proposals and continue. After Spread, the leader may still see its own proposal returned by a majority and decide. The other proposer may see mixed answers and wait.
Phase 3: Carry Forward
Any proposer that failed to decide prepares for the next round. It spreads again and adopts the best proposal found among a majority of recorders. If someone already decided in Phase 2, majority intersection helps remaining proposers discover and adopt that decided proposal before the next round. Failed rounds do not throw away all learning.
After Phase 3, proposers move to the next round. The one-round leader fast path is for the first round of a decision. Later rounds rely on convergence through the slower path. Cloudflare notes that proposal adoption makes later rounds easier, and that the QuePaxa paper predicts a meaningful chance of deciding each round, with practical convergence often stronger.
QuePaxa vs Raft vs Paxos: key differences
The comparison below summarizes the design contrasts discussed by Cloudflare and by the classic protocols. It does not claim that QuePaxa should replace Raft or Paxos in every product.
| Topic | Paxos (classic view) | Raft | QuePaxa |
|---|---|---|---|
| Leadership model | No required single leader in basic Paxos; many deployments add a leader (for example Multi-Paxos) | Strong leader coordinates normal operation | Optional leader for a fast path; other proposers can still proceed |
| Proposal handling | Ballot numbers and Prepare/Accept; higher ballots can preempt lower ones | Leader appends and replicates log entries | Randomized priorities plus adoption of higher-priority proposals |
| Multiple proposer behavior | Concurrent proposers can destructively interfere | Normal case avoids multi-proposer races; elections can reintroduce competition | Proposers cooperate toward the highest known priority |
| Failure recovery | Retry with newer ballots; leader variants re-elect a coordinator | Follower timeouts trigger candidate elections and majority votes | No need to detect leader failure before other proposers continue; hedging can start alternate paths quickly |
| Network assumptions | Safety without synchrony; liveness typically needs partial synchrony in practice | Practical progress depends on usable heartbeats and election timeouts | Designed to keep moving under asynchronous, volatile wide-area conditions |
| Consensus progression | Two-phase proposals; retries when preempted | Progress through a stable leader and log replication | Rounds with four phases; undecided proposers carry learning forward |
| Normal-case fast path | Leader-based Paxos variants can decide in about one round trip | Healthy leader path is optimized for quick decisions | Leader can decide in Phase 0 when its proposal hits a majority first |
Why Cloudflare chose QuePaxa for Meerkat
Meerkat is Cloudflare's experimental consensus service for managing an internal global control plane. Replicas agree on an ordered log of events. Because the log never diverges, every replica can build the same application state, such as a key-value store.
Cloudflare wanted progress even when a leader crashes, disconnects, or simply becomes slow. In its Meerkat evaluations with servers spanning nearly all continents, Cloudflare reports that the service kept processing requests instead of fully stalling. Most decisions were still made by the leader on the fast path. When a decision needed more phases, throughput dropped for a while but the system continued. Cloudflare also says it can change which replica acts as leader while the cluster runs, because the leader is helpful rather than exclusive.
Those observations belong to Cloudflare's Meerkat implementation work. They are not academic-paper benchmarks copied onto Meerkat, and they do not mean Meerkat is a finished public product. Cloudflare notes that QuePaxa is less battle-tested than Raft or Paxos, that the team is extending the original crash-stop design toward crash recovery, and that it is formally verifying the QuePaxa implementation and Meerkat as a whole. More posts are planned around verification, fault-injection testing, and lessons from turning the research protocol into production engineering. Related research context lives at Cloudflare Research.
What It Means for Developers
Most application teams should not rush to replace Raft or Paxos with QuePaxa. Algorithm choice depends on correctness needs, implementation maturity, operational complexity, and the real network you run on. The useful lessons are about design trade-offs.
What It Means for Backend Developers
If you build APIs on top of Node.js, Express, or replicated stores such as MongoDB-backed services, remember that "the database said yes" often hides a consensus story underneath. When writes stall, ask whether a leader election or quorum wait is involved before you blame only application code.
What It Means for Distributed Systems Engineers
Leader election is powerful, but it can become a bottleneck when timeout guesses are wrong. QuePaxa's cooperating proposers show another option: keep safety with majority quorums, while reducing the need to pause the world for recovery. When you evaluate protocols, separate safety proofs from liveness behavior under packet loss and latency spikes.
What It Means for Database Developers
Replicated logs are the backbone of many consistent systems. Whether you work near Raft-based metadata services or custom replication, the Meerkat example is a reminder that geography changes the protocol fit. A design that is excellent in one region may behave differently across continents.
What It Means for Software Architects
Architecture reviews should treat consensus as a first-class dependency, not a checkbox. Ask where the leader lives, how long failover takes, what a majority means for your replica count, and whether clients can retry against other nodes. QuePaxa's optional leader is a concrete illustration of designing for degraded networks instead of only for clean failures.
What It Means for DevOps and Infrastructure Engineers
Global control planes, service discovery, and configuration systems often sit on consensus. Incidents that look like "API latency" may be election storms or quorum loss. Cloudflare's hedging idea also shows that not every timeout is fault detection. Some timeouts only change how aggressively alternate paths start. That distinction matters when you tune alerts and recovery playbooks for platforms such as AWS or edge proxies like Nginx.
Conclusion
Raft and Paxos remain essential tools. They are well understood, widely implemented, and reliable in many deployments. QuePaxa is interesting because it attacks a different pain point: making consensus progress in volatile wide-area networks without waiting for perfect leader failure detection.
Cloudflare chose QuePaxa for Meerkat because an optional leader, randomized priorities, proposal adoption, and four-phase rounds matched a global control-plane problem. QuePaxa itself comes from 2023 research. Meerkat is still experimental engineering on top of that research. For developers, the lasting lesson is practical: match the consensus protocol to your network, and design for both safety and liveness when the Internet misbehaves.

