arXiv:2609.31302cs.DCSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.31302

KCensus: Synthesizing Latency-Optimal Consensus Fast Paths (Extended Version)

Clément Burgelin, Antoine Murat, Gal Sela, Marcos K. Aguilera, Rachid Guerraoui

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Clément Burgelin

EPFL, Lausanne,

Switzerland

Antoine Murat

EPFL, Lausanne,

Switzerland

Gal Sela

EPFL, Lausanne,

Switzerland

Marcos K. Aguilera

NVIDIA, Santa Clara,

USA

Rachid Guerraoui

EPFL, Lausanne,

Switzerland

Abstract

Strongly consistent geo-replication often relies on fast paths to reduce latency in the common case of no failures or contention. Existing fast-path schemes, however, are ad hoc and restrictive: each corresponds to a point in a broad design space shaped by network topology, workload, and latency objective, so no single scheme works best across settings. This paper looks at fast-path schemes from a new perspective, as mechanisms that spread knowledge about proposals. With this view, we identify a fundamental condition on the spread of knowledge for a fast-path scheme to work. We then introduce KCensus, a framework that turns this condition into an optimization problem, synthesizing new fast-path schemes that are optimal for a given setting. We use KCensus to build a geo-replicated key-value store and evaluate it across AWS regions. Our system outperforms competing protocols, with up to 16% lower average latency.

1 Introduction

Modern Internet services rely on geo-replication to remain available despite regional outages. Using consensus for this replication provides the strong consistency many applications require [44, 82]. Consensus, however, adds latency to operations because processes must communicate to safely agree on their ordering [28]. This cost is particularly high in geo-replicated systems, where communication incurs large wide-area delays. At the same time, every millisecond matters for Internet services [62, 73]. Consequently, much work has focused on reducing consensus latency, from Paxos variants to more recent leaderless and topology-aware protocols [4, 9, 10, 56, 58, 66, 69, 79, 86, 91].

These protocols typically use a fast path to reduce latency in common executions without failures or contention [58, 69, 79, 91]. Existing fast paths, however, have two drawbacks. First, they are complex and error-prone, as subtle concurrent scenarios have led to buggy correctness arguments [81, 87]. Second, they are restrictive: each hard-codes a communication pattern, quorum criteria, and recovery mechanism. Yet no fixed choice is optimal: the best one depends on the network topology, the proposer, and the target latency metric.

Figure 1 illustrates this effect: among existing protocols, the one with the lowest average latency does not always have

Figure

Figure 1. Average and tail latency in two deployments. The best prior protocol changes with the latency metric and topology. KCensus always performs best for the targeted metric.

the lowest tail latency, and the tail-latency winner changes across deployments. More fundamentally, using one fast-path strategy for all proposers is itself too restrictive. A proposer’s fast-path strategy specifies what it must know about other processes’ states before deciding. Best performance may require different strategies for different proposers, tailored to their location and proposal rate. These strategies must nevertheless coexist safely: a decision made with one must preclude a conflicting decision made with another.

The key challenge is recovery. If a fast path fails, the fallback must preserve any decision that may already have occurred. Thus, different possible fast decisions must remain distinguishable after failures. We formalize this observation through a general property of consensus: two reachable system states in which different values were decided must differ in the local states of more than f processes, where f is the number of tolerated crashes. Otherwise, after those processes crash, the survivors cannot distinguish the two states.

To translate this property into fast-path design, we view fast paths as mechanisms that spread evidence about acceptances (i.e., votes): which processes accepted a value and who observed those acceptances. Specializing the recoverability property yields two fundamental conditions: every fast-path quorum must contain more than f processes, and conflicting quorums must intersect and evidence about the intersection must survive f failures. We further prove these conditions necessary and sufficient, thereby tightly characterizing how much work a fast path must do.

We use these conditions to build KCensus (Knowledge Census), a framework for synthesizing consensus fast paths. KCensus encodes each proposer's fast-path strategy as a knowledge requirement, reducing correctness to compatibility checks between them, and selects a compatible set of

∗^{*}Extended version of the paper to appear in the 22nd European Conference on Computer Systems (EuroSys '27). Proceedings version: https://doi.org/10.1145/3842654.3848528. © 2027 Copyright held by the owner/author(s). Licensed under CC BY 4.0.

requirements that minimizes the target latency (e.g., mean or tail) for the network topology and proposer distribution.

To demonstrate KCensus’s practicality, we use it to build a strongly consistent geo-replicated key-value store whose fast path is optimized based on network topology, proposer distribution, and target latency metric. In our contention-free experiments, our system always achieves the best targeted metric—cutting average latency by up to 16%. This shows that synthesized fast paths are not only cleaner and more flexible than hard-coded ones, but also significantly faster.

In summary, this paper makes the following contributions:

• We formulate a recoverability property of consensus, derive from it the fundamental knowledge conditions that fast paths must satisfy to remain safely recoverable, and prove that they are both necessary and sufficient.

• We present KCensus, a knowledge-based framework for expressing and verifying per-proposer fast-path strategies.

• We show how to synthesize an optimal fast path from network topology, proposer distribution, and target latency metric, thereby uncovering new fast-path strategies.

• We implement KCensus in a geo-replicated key-value store, open-sourced at github.com/LPD-EPFL/kcensus, and evaluate it across geo-distributed AWS deployments, showing substantial latency improvements over prior protocols.

References (39)