Caracal: Contention Management with Deterministic Concurrency Control
Dai Qin, Angela Demke Brown, Ashvin Goel
Abstract
Deterministic databases offer several benefits: they ensure serializable execution while avoiding concurrency-control related aborts, and they scale well in distributed environments. Today, most deterministic database designs use partitioning to scale up and avoid contention. However, partitioning requires significant programmer effort, leads to poor performance under skewed workloads, and incurs unnecessary overheads in certain uncontended workloads.
We present the design of Caracal, a novel shared-memory, deterministic database that performs well under both skew and contention. Our deterministic scheme batches transactions in epochs and executes the transactions in an epoch in a predetermined order. Our scheme enables reducing contention by batching concurrency control operations. It also allows analyzing the transactions in the epoch to determine contended keys accurately. Certain transactions can then be split into independent contended and uncontended pieces and run deterministically and in parallel, further reducing contention. Based on these ideas, we present two novel optimizations, batch append and split-on-demand, for managing contention. With these optimizations, Caracal scales well and outperforms existing deterministic schemes in most workloads by 1.9x to 9.7x.
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.
20 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
- C5: Cloned Concurrency Control That Always Keeps Up cites Opportunities for Optimism in Contended Main-Memory Multicore Transactions
- When Private Blockchain Meets Deterministic Database cites Opportunities for Optimism in Contended Main-Memory Multicore Transactions
Cited by top-tier papers20
- NeuChain: A Fast Permissioned Blockchain System with Deterministic OrderingZeshun Peng, Yanfeng Zhang, Qian Xu, Haixu Liu et al.VLDB 2022 · 42 citations
- Efficient Distributed Transaction Processing in Heterogeneous NetworksQian Zhang, Jingyao Li, Hongyao Zhao, Quanqing Xu et al.VLDB 2023 · 25 citations
- When Private Blockchain Meets Deterministic DatabaseZiliang Lai, Chris Liu, Eric LoSIGMOD 2023 · 22 citations
- C5: Cloned Concurrency Control That Always Keeps UpJeffrey Helt, Abhinav Sharma, Daniel J. Abadi, Wyatt Lloyd et al.VLDB 2023 · 17 citations
- Towards Optimal Transaction SchedulingAudrey Cheng, Aaron N. Kabcenell, Jason Chan, Xiao Shi et al.VLDB 2024 · 14 citations
Builds on2
Related papers
- Integrating Non-Volatile Main Memory in a Deterministic DatabaseYu Chen Wang, Angela Demke Brown, Ashvin GoelEuroSys 2023 · 5 citations
- DORADD: Deterministic Parallel Execution in the Era of Microsecond-Scale ComputingZhengqing Liu, Musa Unal, Matthew J. Parkinson, Marios KogiasPPoPP 2025 · 3 citations
- Don't Look Back, Look into the Future: Prescient Data Partitioning and Migration for Deterministic Database SystemsYu-Shan Lin, Ching Tsai, Tz-Yu Lin, Yun-Sheng Chang et al.SIGMOD 2021 · 17 citations
- Wait and See: A Delayed Transactions Partitioning Approach in Deterministic Database Systems for Better PerformanceYuan Sui, Xiaochun Yang, Bin Wang, Yujie Zhang et al.SIGMOD 2025 · 2 citations
- Lotus: Scalable Multi-Partition Transactions on Single-Threaded Partitioned DatabasesXinjing Zhou, Xiangyao Yu, Goetz Graefe, Michael StonebrakerVLDB 2022 · 11 citations
