arXiv:2611.05882cs.DBNov 2026

Manuscript Offprint

arXiv:2611.05882

Optimizing Geo-replicated Deterministic Databases

Yunhao Mao, Shiquan Zhang, Gengrui Zhang, Hans-Arno Jacobsen

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

ABSTRACT

In transactional databases, achieving active-active replication among geo-distributed replicas is challenging due to the high coordination cost in ensuring the serializability of concurrent cross-node transactions. Deterministic concurrency control (DCC) has emerged as a promising alternative: it establishes a global order for a batch of transactions before execution and thereby amortizes this coordination cost across the batch. To better understand the performance characteristics of DCC, we conduct a theoretical analysis of traditional two-phase locking and optimistic concurrency control to account for geo-replication and introduce a model for DCC. We compare the three paradigms and identify the conditions under which DCC is advantageous. Guided by the insights from this analysis, we then present Quirinus, a DCC-based geo-replicated database that optimizes transaction execution through speculative execution, transaction reordering, integration of conflict-free replicated data types (CRDTs), and fast-path commit. Even without these optimizations, Quirinus achieves up to 6.2× the TPC-C throughput of Tiga under our configuration.

1 INTRODUCTION

Geo-replication is essential for globally scaled databases, as it provides extremely high availability to the applications that serve global users. Commonly, a geo-replicated OLTP database consists of transaction execution nodes and replicated storage nodes distributed across different data centers (DCs) for horizontal scalability and fault tolerance.

To provide serializable isolation, databases use concurrency control protocols such as two-phase locking (2PL) and optimistic concurrency control (OCC) to resolve conflicts and establish a serial transaction order. Under geo-replication, however, these protocols incur significant coordination overhead [59] because a transaction cannot commit until its writes have been durably and consistently replicated. This guarantee is typically provided through consensus replication [25, 38], which adds cross-DC communication to the commit path [58]. Because round-trip times (RTTs) between geo-distributed DCs can reach hundreds of milliseconds [4], this coordination lengthens transaction lifetimes. Both 2PL and OCC resolve conflicts at runtime for each transaction, so longer lifetimes increase exposure to conflicts [57]: 2PL transactions hold locks longer, whereas OCC transactions are more likely to abort and retry.

The support for an active-active architecture further complicates the design of concurrency control protocols because the storage layer must now accept both reads and writes at any replica, requiring multi-leader replication [1, 32, 62] instead of routing all requests to a designated leader and only using replicas for backups. Active-active offers better redundancy in the case of leader failures or a network partition between execution nodes and storage nodes [31, 61]. However, transactions may concurrently read and update different replicas, requiring execution nodes to coordinate to ensure serializability.

Many prior studies have proposed techniques to reduce the coordination overhead, such as consolidating atomic commitment and replication [13, 27, 34], using OCC with a fast commit path [12, 29, 32, 47], or relaxing consistency guarantees [5, 14, 26, 59]. While some can reduce commit latency to as low as one RTT under ideal, conflict-free conditions, they cannot eliminate multi-node concurrency control coordination as it is not possible to determine whether a transaction conflicts with another without communication.

An alternative is to amortize the coordination cost. When multiple operations require the same fixed-cost step, such as I/O or network communication, executing that step once for a batch amortizes the cost across the operations and improves throughput [19]. Transaction processing systems already use batching for replication and validation. However, transaction ordering cannot be batched when each transaction is ordered independently at runtime.

Deterministic concurrency control (DCC) brings batching to transaction ordering. It predetermines a global order for a batch of transactions before execution, thereby removing runtime order resolution while preserving serializability [2, 10, 11, 16, 20, 21, 28, 44, 52, 53, 56]. It thus removes the need for strongly consistent replication at the storage layer; instead, the replication moves to the execution layer that replicates transaction inputs and runs the same deterministic execution at each replica. By decoupling ordering from execution, DCC amortizes the ordering coordination cost across a batch instead of paying it for each transaction. However, this design introduces two costs: (1) every transaction incurs batching delay, even without contention; and (2) execution is repeated at each replica, making execution efficiency critical.

Table 1 summarizes the concurrency control and replication paradigms of representative OLTP systems with replication in mind. We observe that OCC has become a popular choice for geo-replication, while DCC is gaining traction in recent years. Although the strengths and weaknesses of these concurrency control paradigms are intuitively clear, we need to understand their advantageous regimes and trade-offs. Thus, we conduct a theoretical analysis that models and compares the commit latency and throughput of 2PL, OCC, and DCC. DCC is found to achieve favorable performance when the network RTT dominates execution time, whereas 2PL and OCC can suffer from unbounded latency under

Table 1: OLTP Systems Overview

SystemCC protocolReplication typePartial vs. fullOrdering mechanismNotes
Spanner [8]2PL+MVCCLeader-followerPartial / configurablePhysical Timestamp
CockroachDB [49]Timestamp Ordering + MVCCLeader-followerPartial / configurablePhysical TimestampHybrid concurrency control using timestamps and optimistic execution
TAPIR [59]OCCLeaderlessPartialPhysical Timestamp
Mako [47]OCCLeader-followerPartialLocal TimeRequires RDMA
GeoGauss [62]OCCMulti-leaderFullLocal Time
Starry [61]OCCMulti-leaderPartialLogical Clock
Tiga [13]Timestamp Ordering + OCCLeader-followerPartial or fullLogical Clock
Minerva [32]OCC + DeterministicMulti-leaderFullLogical ClockDeterministic only for aborted transactions
Calvin [53]DeterministicLeader-followerFullLocal Time
SLOG [45]DeterministicLeader-followerFullLog Order
Detock [37]DeterministicLeader-followerHybrid; optional full materializationDependency Graph
Aria [28]DeterministicCC-only designN/ALogical Clock
Harmony [24]DeterministicBlockchainFullLogical ClockBlock-level ordering
QuirinusDeterministicMulti-leaderFullLogical Clock

Replication coverage. Full means that every region stores every database partition; partial means that a shard or range may be placed only in selected regions. A full logical replica may still be partitioned across multiple nodes within a region.

high contention. The replication speed and deterministic execution time are still the bottleneck for DCC, which requires optimization.

Guided by this analysis, we select four techniques to optimize DCC: speculative execution, transaction reordering, conflict-free replicated data types (CRDTs) [43, 46], and fast-path commit. We implement these techniques in Quirinus, a DCC-based database designed for active-active geo-replication.¹

The core idea that allows these optimizations to be realized is to synchronize replica state only at batch boundaries, creating a consistent snapshot [9] between consecutive batches. This design allows transactions within a batch to be freely reordered to reduce the total execution cost, provided that all replicas derive the same deterministic order. For example, a transaction with a read-write dependency can instead read from the snapshot, allowing it to execute concurrently with the writer.

In summary, the contributions are as follows:

(1) We present explanatory models of 2PL, OCC, and DCC response time and saturation throughput and use them to identify qualitative regimes of contention and network delay in which each paradigm is advantageous.

(2) We present Quirinus, a database that utilizes DCC with optimizations that reduce the execution delay of DCC.

(3) We evaluate the three paradigms with simulated geo-distributed deployments to test the model's bottleneck predictions. Even without these optimizations, Quirinus achieves up to 6.2× the TPC-C throughput of Tiga [13] under our configuration.

The rest of this paper is organized as follows. Section 2 introduces the main paradigms of distributed concurrency control. Section 3 models the commit latency and throughput of these paradigms under geo-replication and compares their behavior under contention. Section 4 presents the design of Quirinus. Section 5 evaluates Quirinus on geo-distributed workloads. Section 6 discusses related work.

References (29)