NCC: Natural Concurrency Control for Strictly Serializable Datastores by Avoiding the Timestamp-Inversion Pitfall
Haonan Lu, Shuai Mu, Siddhartha Sen, Wyatt Lloyd
Abstract
Strictly serializable datastores greatly simplify the development of correct applications by providing strong consistency guarantees. However, existing techniques pay unnecessary costs for naturally consistent transactions, which arrive at servers in an order that is already strictly serializable. We find these transactions are prevalent in datacenter workloads. We exploit this natural arrival order by executing transaction requests with minimal costs while optimistically assuming they are naturally consistent, and then leverage a timestamp-based technique to efficiently verify if the execution is indeed consistent. In the process of designing such a timestamp-based technique, we identify a fundamental pitfall in relying on timestamps to provide strict serializability, and name it the timestamp-inversion pitfall. We find timestamp-inversion has affected several existing works. We present Natural Concurrency Control (NCC), a new concurrency control technique that guarantees strict serializability and ensures minimal costs -- i.e., one-round latency, lock-free, and non-blocking execution -- in the best (and common) case by leveraging natural consistency. NCC is enabled by three key components: non-blocking execution, decoupled response control, and timestamp-based consistency check. NCC avoids timestamp-inversion with a new technique: response timing control, and proposes two optimization techniques, asynchrony-aware timestamps and smart retry, to reduce false aborts. Moreover, NCC designs a specialized protocol for read-only transactions, which is the first to achieve the optimal best-case performance while ensuring strict serializability, without relying on synchronized clocks. Our evaluation shows that NCC outperforms state-of-the-art solutions by an order of magnitude on many workloads.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- K2: On Optimizing Distributed Transactions in a Multi-region Data Store with True-time Clocks cites Unifying Timestamp with Transaction Ordering for MVCC with Decentralized Scalar Timestamp
- Boosting End-to-End Database Isolation Checking via Mini-Transactions cites VerIso: Verifiable Isolation Guarantees for Database Transactions
- Mako: Speculative Distributed Transactions with Geo-Replication cites Unifying Timestamp with Transaction Ordering for MVCC with Decentralized Scalar Timestamp
Cited by top-tier papers8
- K2: On Optimizing Distributed Transactions in a Multi-region Data Store with True-time ClocksHaoze Song, Yongqi Wang, Xusheng Chen, Hao Feng et al.VLDB 2025 · 7 citations
- VerIso: Verifiable Isolation Guarantees for Database TransactionsShabnam Ghasemirad, Si Liu, Christoph Sprenger, Luca Multazzu et al.VLDB 2025 · 6 citations
- Mako: Speculative Distributed Transactions with Geo-ReplicationWeihai Shen, Yang Cui, Siddhartha Sen, Sebastian Angel et al.OSDI 2025 · 4 citations
- Boosting End-to-End Database Isolation Checking via Mini-TransactionsHengfeng Wei, Jiang Xiao, Na Yang, Si Liu et al.ICDE 2025 · 3 citations
- Accelerating Skewed Workloads With Performance Multipliers in the TurboDB Distributed DatabaseJennifer Lam, Jeffrey Helt, Wyatt Lloyd, Haonan LuNSDI 2024 · 3 citations
Builds on2
Related papers
- Aurogon: Taming Aborts in All Phases for Distributed In-Memory TransactionsTianyang Jiang, Guangyan Zhang, Zhiyue Li, Weimin ZhengFAST 2022 · 10 citations
- Focus! Fast On-disk Concurrency-control Using SketchesDeukyeon Hwang, Alexander Conway, Carlos Garcia-Alvarado, Jun Yuan et al.SIGMOD 2026
- Repairing serializability bugs in distributed database programs via automated schema refactoringKia Rahmani, Kartik Nagar, Benjamin Delaware, Suresh JagannathanPLDI 2021 · 4 citations
- Tiga: Accelerating Geo-Distributed Transactions with Synchronized ClocksJinkun Geng, Shuai Mu, Anirudh Sivaraman, Balaji PrabhakarSOSP 2025 · 2 citations
- Morty: Scaling Concurrency Control with Re-ExecutionMatthew Burke, Florian Suri-Payer, Jeffrey Helt, Lorenzo Alvisi et al.EuroSys 2023 · 7 citations
