Abstract
We prove that no fully transactional system can provide fast read transactions (including read-only ones that are considered the most frequent in practice). Specifically, to achieve fast read transactions, the system has to give up support of transactions that write more than one object. We prove this impossibility result for distributed storage systems that are causally consistent, i.e., they do not require to ensure any strong form of consistency. Therefore, our result holds also for any system that ensures a consistency level stronger than causal consistency, e.g., strict serializability. The impossibility result holds even for systems that store only two objects (and support at least two servers and at least four clients). It also holds for systems that are partially replicated. Our result justifies the design choices of state-of-the-art distributed transactional systems and insists that system designers should not put more effort to design fully-functional systems that support both fast read transactions and ensure causal or any stronger form of consistency.
Introduction
In distributed storage systems, read operations heavily dominate workloads. Consequently, optimizing read-only transactions is the "holy grail" for system performance. Researchers and engineers strive for "fast" read-only transactions, which are defined by three strict properties:
- One-roundtrip: The client communicates with servers in a single round of messages.
- Non-blocking: The transaction never has to wait on locks or other blocking mechanisms.
- One-value: Servers only send back a single value per requested object, avoiding massive data payloads.
State-of-the-art systems like Google's Spanner, COPS, or RoCoCo fail to achieve all three of these properties while simultaneously supporting multi-object write transactions. They either require multiple rounds of communication, use blocking locks, or restrict writes to a single object. This paper asks a critical question: Are these existing systems just poorly optimized, or is there a fundamental mathematical barrier preventing a system from having both fast reads and multi-object writes?
The "Pick Three" Trade-off
The core finding of this research is a fundamental trade-off in distributed systems design. Designers are faced with four desirable properties: Non-blocking (N), One-roundtrip (R), One-value messages (V), and Multi-object Write transactions (W). The core insight is that you can pick at most three. If you want fast reads (N+R+V), you lose multi-object writes. If you want multi-object writes, your reads must block, take multiple roundtrips, or return bloated multi-value messages.
Crucially, this impossibility holds even for causal consistency, a relatively weak consistency model. Because it holds for causal consistency, it automatically applies to any stronger form of consistency, such as the strict serializability used in Spanner.
Methodology: Indistinguishability Arguments
The authors use mathematical proofs—specifically indistinguishability arguments—to demonstrate their impossibility result. They assume a hypothetical system exists that provides fast reads, multi-object writes, and causal consistency, and then construct "troublesome" execution scenarios to find a contradiction.
Using mathematical induction, they prove that in these scenarios, a write-only transaction would never actually make its written values visible to readers without requiring servers to exchange extra messages. Because the servers are forced to communicate further to figure out the correct state, the "fast" (one-roundtrip/non-blocking) constraints are broken.
As shown in the constructions above, for a reader to return a consistent set of values, it must be able to distinguish between states where a multi-object write has occurred and where it hasn't. The constraints of a "fast" system prevent the necessary information from being available in a single roundtrip without extra server-to-server coordination.
Key Results and System Taxonomy
- Theorem 1: Formal proof that no causally consistent implementation of a transactional storage system can support both multi-object writes and fast read-only transactions.
- Theorem 2: The impossibility result is robust; it extends to partially replicated systems where servers hold overlapping, but not identical, sets of data.
- System Taxonomy: The authors categorized over 20 existing distributed databases. Exactly zero of them achieve all four properties, perfectly aligning with this theoretical bound. For example, COPS-SNOW achieves fast reads but drops multi-object writes, while Spanner keeps multi-object writes but sacrifices fast reads.
Conclusion
This theorem proves that the compromises made by engineers building real-world distributed databases aren't due to a lack of imagination. The latency overheads in modern systems are mathematically necessary to maintain transactional guarantees. Future work remains in finding the absolute weakest consistency model for which this result holds and exploring the potential for efficient N+R+W systems that sacrifice one-value messages.
Summary updated