Knock Out 2PC with Practicality Intact: a High-performance and General Distributed Transaction Protocol
Ziliang Lai, Hua Fan, Wenchao Zhou, Zhanfeng Ma, Xiang Peng, Feifei Li, Eric Lo
摘要
Two-phase-commit (2PC) has been widely adopted for distributed transaction processing, but it also jeopardizes throughput by introducing two rounds of network communications and two durable log writes to a transaction's critical path. Despite the various proposals that eliminate 2PC such as deterministic database and access localization, 2PC remains the de facto standard since the alternatives often lack generality (e.g., requiring workloads without branches based on query results). In this paper, we present Primo, a distributed transaction protocol that supports a more general set of workloads without 2PC. Primo features write-conflict-free concurrency control that guarantees once a transaction enters the commit phase, no concurrency conflict (e.g., deadlock) would occur when installing the write-set — hence the prepare phase is no longer needed to account for any potential conflict from any partition. In addition, Primo further optimizes the transaction path using asynchronous group commit. With that, the durability delay is also taken off the transaction's critical path. Empirical results on Primo are encouraging – in YCSB and TPC-C, Primo attains 1.42× to 8.25× higher throughput than state-of-the-art general protocols including Sundial and COCO, while having similar latency as COCO which also employs group commit.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Tigon: A Distributed Database for a CXL Pod 引用了 Zeus: locality-aware distributed transactions
- Tigon: A Distributed Database for a CXL Pod 引用了 Epoch-based Commit and Replication in Distributed OLTP Databases
- A Hybrid Approach to Integrating Deterministic and Non-deterministic Concurrency Control in Database Systems 引用了 Opportunities for Optimism in Contended Main-Memory Multicore Transactions
- Lion: Minimizing Distributed Transactions Through Adaptive Replica Provision 引用了 Epoch-based Commit and Replication in Distributed OLTP Databases
- Lion: Minimizing Distributed Transactions Through Adaptive Replica Provision 引用了 Caracal: Contention Management with Deterministic Concurrency Control
- Mako: Speculative Distributed Transactions with Geo-Replication 引用了 Zeus: locality-aware distributed transactions
- Mako: Speculative Distributed Transactions with Geo-Replication 引用了 Epoch-based Commit and Replication in Distributed OLTP Databases
- Mako: Speculative Distributed Transactions with Geo-Replication 引用了 Caerus: Low-Latency Distributed Transactions for Geo-Replicated Systems
- Mako: Speculative Distributed Transactions with Geo-Replication 引用了 Opportunities for Optimism in Contended Main-Memory Multicore Transactions
- Caracal: Contention Management with Deterministic Concurrency Control 引用了 Opportunities for Optimism in Contended Main-Memory Multicore Transactions
引用它的顶会 Paper6
- Tigon: A Distributed Database for a CXL PodYibo Huang, Haowei Chen, Newton Ni, Yan Sun 等OSDI 2025 · 12 次引用
- Caerus: Low-Latency Distributed Transactions for Geo-Replicated SystemsJoshua Hildred, Michael Abebe, Khuzaima DaudjeeVLDB 2024 · 10 次引用
- Lion: Minimizing Distributed Transactions Through Adaptive Replica ProvisionQiushi Zheng, Zhanhao Zhao, Wei Lu, Chang Yao 等ICDE 2024 · 7 次引用
- Mako: Speculative Distributed Transactions with Geo-ReplicationWeihai Shen, Yang Cui, Siddhartha Sen, Sebastian Angel 等OSDI 2025 · 4 次引用
- A Hybrid Approach to Integrating Deterministic and Non-deterministic Concurrency Control in Database SystemsYinhao Hong, Hongyao Zhao, Wei Lu, Xiaoyong Du 等VLDB 2025 · 3 次引用
它引用的 Paper10
- Opportunities for Optimism in Contended Main-Memory Multicore TransactionsYihe Huang, William Qian, Eddie Kohler, Barbara Liskov 等VLDB 2020 · 60 次引用
- Epoch-based Commit and Replication in Distributed OLTP DatabasesYi Lu, Xiangyao Yu, Lei Cao, Samuel MaddenVLDB 2021 · 52 次引用
- Caracal: Contention Management with Deterministic Concurrency ControlDai Qin, Angela Demke Brown, Ashvin GoelSOSP 2021 · 37 次引用
- Taurus: Lightweight Parallel Logging for In-Memory Database Management SystemsYu Xia, Xiangyao Yu, Andrew Pavlo, Srinivas DevadasVLDB 2021 · 22 次引用
- Zeus: locality-aware distributed transactionsAntonios Katsarakis, Yijun Ma, Zhaowei Tan, Andrew Bainbridge 等EuroSys 2021 · 20 次引用
相关 Paper
- Fast Commitment for Geo-Distributed Transactions via Decentralized Co-coordinatorsZihao Zhang, Huiqi Hu, Xuan Zhou, Yaofeng Tu 等VLDB 2024 · 3 次引用
- Polaris: Enabling Transaction Priority in Optimistic Concurrency ControlChenhao Ye, Wuh-Chwen Hwang, Keren Chen, Xiangyao YuSIGMOD 2023 · 12 次引用
- OOCC: One-Round Optimistic Concurrency Control for Read-Only Disaggregated TransactionsHao Wu, Mingxing Zhang, Kang Chen, Xia Liao 等ICDE 2025 · 4 次引用
- Sonata: Multi-Database Transactions Made Fast and SerializableChuzhe Tang, Zhaoguo Wang, Jinyang Li, Haibo ChenVLDB 2025 · 1 次引用
- Aria: A Fast and Practical Deterministic OLTP DatabaseYi Lu, Xiangyao Yu, Lei Cao, Samuel MaddenVLDB 2020
