Skip to content
ES EN
Theme: automatic

Guide: Evaluating QuePaxa, Cloudflare’s Leaderless Consensus, in Your System

A practical guide to deciding whether a leaderless consensus like QuePaxa fits your distributed infrastructure, what to measure, and pitfalls to avoid.

Software engineering

Cloudflare has detailed its use of QuePaxa, a consensus algorithm that keeps making progress even when the leader fails, drops offline, or simply runs slowly. They use it in Meerkat, an experimental distributed consensus service designed to coordinate infrastructure spread across the globe.

We are not going to reimplement anything here. This guide proposes a reproducible method to evaluate whether such an idea deserves a spot in your architecture: what questions to ask, what to measure, and what to read before making a decision. It builds on the InfoQ summary and Cloudflare's materials.

What You Need

  • A concrete use case: shared configuration, role election, or any data that multiple machines need to agree on.
  • A test environment with nodes in different regions, or at least simulated latency between them.
  • A way to measure request latency and availability during failures.
  • Prior reading: the ACM research paper and Cloudflare's explanation.

What Changes Compared to Raft or Multi-Paxos

Standard algorithms like Raft, Multi-Paxos, or Viewstamped Replication are heavily studied and have mature implementations. According to Cloudflare's engineers, they struggle in wide-area networks with volatile connectivity and latency—precisely where Meerkat runs.

In QuePaxa, any node can propose a value. Each round consists of four phases: proponents send their proposal to registrars, advance upon receiving responses from a majority, adopt and broadcast the highest-priority proposals, and check whether there is sufficient agreement. If not, they carry the best proposal over to the next round. A short, configurable timeout allows other nodes to take over without waiting to detect a leader failure.

Conceptual diagram of multiple nodes exchanging proposals to agree on a value without a fixed leader
Multiple nodes propose and converge without depending on a single leader.

Step-by-Step Evaluation

  1. Define what "progress" means in your system: committed requests per second and acceptable latency at your target percentile.
  2. Measure your baseline with your current consensus under normal conditions, distributing nodes across distant regions.
  3. Trigger three scenarios: leader crash, network partition, and a slow-but-alive leader. Record how long it takes for the system to resume committing requests.
  4. Compare this with Cloudflare's findings: Meerkat continues processing requests even when the leader crashes, disconnects, or slows down, and they never observed it grinding to a complete halt.
  5. Decide whether the cost of adopting a less common algorithm outweighs the observed improvement in your scenario.
# Plantilla de registro para cada experimento (rellenar a mano)
escenario: lider_lento
nodos: 5
regiones: 3
latencia_p50_ms: <medido>
latencia_p99_ms: <medido>
peticiones_confirmadas_durante_fallo: <medido>
tiempo_hasta_recuperar_ms: <medido>

A comment on LinkedIn neatly summarizes the appeal: the value isn't lack of a leader per se, but rather that misjudging a failure costs performance rather than availability. In a global network, slow and dead can look identical for quite a while, at which point recovery turns into an outage.

Tip Always test the slow node scenario, not just the crashed node one. That's usually what exposes poor failure detection. And remember that QuePaxa is not the standard: you will have fewer mature implementations and less community experience than with Raft, so have an exit plan.

One final warning: Meerkat is experimental, and Cloudflare's figures come from their own evaluations using servers on nearly every continent. Do not extrapolate their results to your network without measuring. If the original article sparks questions about how simultaneous proponents are avoided, that's precisely what the community is discussing, and the answer lies in the academic paper.

To learn more: Chinese edition.

Original source: infoq.com

Article generated with AI.larebelion

Kernel

· CTO · Spain

"The value of QuePaxa isn't ditching the leader, but ensuring that doubting a slow node costs speed rather than causing an outage."

Comments (0)

No comments yet. You can be the first.

Write a comment