[Paper Review] Highly Available Transactions: Virtues and Limitations (Extended Version)
This paper introduces Highly Available Transactions (HATs), a taxonomy of transactional semantics that maintain system availability during network partitions and reduce latency. It demonstrates that while serializability and certain isolation levels like Snapshot Isolation are not HAT-compliant due to conflict detection requirements, models such as Read Committed and causal consistency with phantom prevention are achievable via multi-versioning and client-side caching, offering up to three orders of magnitude lower latency than traditional protocols.
To minimize network latency and remain online during server failures and network partitions, many modern distributed data storage systems eschew transactional functionality, which provides strong semantic guarantees for groups of multiple operations over multiple data items. In this work, we consider the problem of providing Highly Available Transactions (HATs): transactional guarantees that do not suffer unavailability during system partitions or incur high network latency. We introduce a taxonomy of highly available systems and analyze existing ACID isolation and distributed data consistency guarantees to identify which can and cannot be achieved in HAT systems. This unifies the literature on weak transactional isolation, replica consistency, and highly available systems. We analytically and experimentally quantify the availability and performance benefits of HATs--often two to three orders of magnitude over wide-area networks--and discuss their necessary semantic compromises.
Motivation & Objective
- To resolve the longstanding tension between high availability and transactional consistency in distributed systems.
- To clarify which ACID isolation levels and consistency models are compatible with high availability, especially during network partitions.
- To identify semantic compromises necessary for achieving high availability without sacrificing practical utility.
- To demonstrate that many widely used isolation levels—like Read Committed—are achievable as HATs, offering strong performance benefits.
- To provide a formal taxonomy and proof-of-concept algorithms for HAT-compliant systems, distinguishing between fully available and sticky availability models.
Proposed method
- Proposes a taxonomy of highly available systems, classifying isolation and consistency models based on their compatibility with high availability.
- Analyzes existing ACID isolation levels and distributed consistency models to determine which can be implemented with high availability.
- Employs impossibility results to prove that serializability, Snapshot Isolation, and Repeatable Read are not HAT-compliant due to conflict detection requirements.
- Develops constructive, proof-of-concept algorithms using multi-versioning and limited client-side caching to achieve HAT-compliant semantics.
- Introduces the concept of 'sticky availability,' where clients maintain affinity with a single server, enabling stronger guarantees than full partition tolerance.
- Evaluates HAT systems experimentally on modern cloud infrastructure, comparing latency and availability to traditional distributed serializability protocols.
Experimental results
Research questions
- RQ1Which ACID isolation levels can be made highly available in the presence of network partitions?
- RQ2Why are certain isolation levels like Snapshot Isolation and Repeatable Read not compatible with high availability?
- RQ3Can practical, useful transactional semantics be achieved with high availability and low latency in wide-area networks?
- RQ4What are the necessary trade-offs in semantics when prioritizing availability and low latency over strong consistency guarantees?
- RQ5How does client-side affinity (sticky availability) enable stronger HAT-compliant guarantees than full partition tolerance?
Key findings
- HAT-compliant systems achieve one to three orders of magnitude lower latency than traditional distributed serializability protocols in wide-area networks.
- Serializability, Snapshot Isolation, and Repeatable Read are not HAT-compliant because they require conflict detection, which is impossible during network partitions.
- Read Committed isolation, transactional atomicity, and causal consistency with phantom prevention are HAT-compliant and can be implemented using multi-versioning and client-side caching.
- Many default isolation levels in modern databases—such as Read Committed—are already HAT-compliant, suggesting that availability and practical transactional semantics are not mutually exclusive.
- The concept of 'sticky availability' allows for stronger guarantees than full high availability and is widely used in practice, though less restrictive than traditional high availability.
- HATs represent a large, practical design space for distributed systems, enabling 'always-on' operation with low latency while preserving useful semantic guarantees for many applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.