Lune

SIGMOD2024Top-tier venue

Optimizing Distributed Protocols with Query Rewrites

David C. Y. Chu, Rithvik Panchapakesan, Shadaj Laddad, Lucky E. Katahanas, Chris Liu, Kaushik Shivakumar, Natacha Crooks, Joseph M. Hellerstein, Heidi Howard

Abstract

Distributed protocols such as 2PC and Paxos lie at the core of many systems in the cloud, but standard implementations do not scale. New scalable distributed protocols are developed through careful analysis and rewrites, but this process is ad hoc and error-prone. This paper presents an approach for scaling any distributed protocol by applying rule-driven rewrites, borrowing from query optimization. Distributed protocol rewrites entail a new burden: reasoning about spatiotemporal correctness. We leverage order-insensitivity and data dependency analysis to systematically identify correct coordination-free scaling opportunities. We apply this analysis to create preconditions and mechanisms for coordination-free decoupling and partitioning, two fundamental vertical and horizontal scaling techniques. Manual rule-driven applications of decoupling and partitioning improve the throughput of 2PC by 5× and Paxos by 3×, and match state-of-the-art throughput in recent work. These results point the way toward automated optimizers for distributed protocols based on correct-by-construction rewrite rules.

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.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Scaling Replicated State Machines with Compartmentalization cites Scalog: Seamless Reconfiguration and Total Order in a Scalable Shared Log
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. PRDTs: Composable Design and Verification of Consensus Protocols using Replicated Data TypesJulian Haas, Ragnar Mogk, Annette Bieniusa, Mira MeziniOOPSLA 2026 · 1 citation
  2. FlowLog: Efficient and Extensible Datalog via IncrementalityHangdong Zhao, Zhenghong Yu, Srinag Rao, Simon Frisk et al.VLDB 2026

Builds on6

  1. DistAI: Data-Driven Automated Invariant Learning for Distributed ProtocolsJianan Yao, Runzhou Tao, Ronghui Gu, Jason Nieh et al.OSDI 2021 · 76 citations
  2. Kauri: Scalable BFT Consensus with Pipelined Tree-Based Dissemination and AggregationRay Neiheiser, Miguel Matos, Luís E. T. RodriguesSOSP 2021 · 65 citations
  3. Scalog: Seamless Reconfiguration and Total Order in a Scalable Shared LogCong Ding, David Chu, Evan Zhao, Xiang Li et al.NSDI 2020 · 52 citations
  4. Scaling Replicated State Machines with CompartmentalizationMichael J. Whittaker, Ailidani Ailijiang, Aleksey Charapko, Murat Demirbas et al.VLDB 2021 · 40 citations
  5. Basil: Breaking up BFT with ACID (transactions)Florian Suri-Payer, Matthew Burke, Zheng Wang, Yunhao Zhang et al.SOSP 2021 · 22 citations

Related papers

  1. Peepco: Batch-Based Consistency OptimizationIvan Kuraj, John K. Feser, Nadia Polikarpova, Armando Solar-LezamaOOPSLA 2025
  2. Electrode: Accelerating Distributed Protocols with eBPFYang Zhou, Zezhou Wang, Sowmya Dharanipragada, Minlan YuNSDI 2023 · 78 citations
  3. Optimal Sharding for Scalable Blockchains with Deconstructed SMRJianting Zhang, Zhongtang Luo, Raghavendra Ramesh, Aniket KateVLDB 2025 · 7 citations
  4. Fast Commitment for Geo-Distributed Transactions via Decentralized Co-coordinatorsZihao Zhang, Huiqi Hu, Xuan Zhou, Yaofeng Tu et al.VLDB 2024 · 3 citations
  5. Cornus: Atomic Commit for a Cloud DBMS with Storage DisaggregationZhihan Guo, Xinyu Zeng, Kan Wu, Wuh-Chwen Hwang et al.VLDB 2023 · 23 citations
Dusk over the sea between two cliffs drawn in fine vertical lines