Timestamp as a Service, not an Oracle
Yishuai Li, Yunfeng Zhu, Chao Shi, Guanhua Zhang, Jianzhong Wang, Xiaolu Zhang
Abstract
We present a logical timestamping mechanism for ordering transactions in distributed databases, eliminating the single point of failure (SPoF) that bother existing timestamp "oracles". The main innovation is a bipartite client-server architecture, where the servers do not communicate with each other. The result is a highly available timestamping "service" that guarantees the availability of time-stamps, unless half the servers are down at the same time.
We study the fundamental needs of timestamping, and formalize its availability and correctness properties in a distributed setting. We then introduce the TaaS (timestamp as a service) algorithm, which defines a monotonic spacetime over multiple server clocks. We prove, mathematically: (i) Availability that the timestamps are always computable, provided any majority of the server clocks being observable; and (ii) Correctness that all the computed time-stamps must increase monotonically over time, even if some clocks become unobservable.
We evaluate our algorithm by prototyping TaaS and benchmarking it against state of the art timestamp oracle in TiDB. Our experiment shows that TaaS is indeed immune to SPoF (as we have proven mathematically), while exhibiting a reasonable performance at the same order of magnitude with TiDB. We also demonstrate the stability of our bipartite architecture, by deploying TaaS across datacenters and showing its resilience to datacenter-level failures.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2bdc1a96-a077-4d5f-af44-5a1873f07a02Cited by top-tier papers4
- Mako: Speculative Distributed Transactions with Geo-ReplicationWeihai Shen, Yang Cui, Siddhartha Sen, Sebastian Angel et al.OSDI 2025 · 4 citations
- LeaseGuard: Raft Leases Done RightA. Jesse Jiryu Davis, Murat Demirbas, Lingzhi DengSIGMOD 2026 · 2 citations
- Rebirth-Retire: A Concurrency Control Protocol Adaptable to Different Levels of ContentionQian Zhang, Yiwen Xiang, Jianhao Wei, Yang Yang et al.VLDB 2025 · 1 citation
- Vodka: Rethink Benchmarking Philosophy in HTAP SystemsZirui Hu, Siyang Weng, Zhicheng Pan, Rong Zhang et al.VLDB 2026
Builds on1
Related papers
- Distributed Transactions at Scale in Amazon DynamoDBJoseph Idziorek, Alex Keyes, Colin Lazier, Somu Perianayagam et al.USENIX ATC 2023 · 6 citations
- Tiga: Accelerating Geo-Distributed Transactions with Synchronized ClocksJinkun Geng, Shuai Mu, Anirudh Sivaraman, Balaji PrabhakarSOSP 2025 · 2 citations
- UniStore: A fault-tolerant marriage of causal and strong consistencyManuel Bravo, Alexey Gotsman, Borja de Régil, Hengfeng WeiUSENIX ATC 2021 · 1 citation
- Aurogon: Taming Aborts in All Phases for Distributed In-Memory TransactionsTianyang Jiang, Guangyan Zhang, Zhiyue Li, Weimin ZhengFAST 2022 · 10 citations
- Unifying Timestamp with Transaction Ordering for MVCC with Decentralized Scalar TimestampXingda Wei, Rong Chen, Haibo Chen, Zhaoguo Wang et al.NSDI 2021 · 24 citations
