Bipartisan Paxos: A Modular State Machine Replication Protocol

Michael J. Whittaker, Neil Giridharan, Adriana Szekeres, Joseph M. Hellerstein, Ion StoicaarXiv 2020

Abstract

State machine replication (SMR) is fundamental to distributed systems, yet existing protocols often suffer from scalability bottlenecks and implementation complexity. This paper introduces Bipartisan Paxos (BPaxos), a modular SMR protocol that achieves high throughput by decoupling and independently scaling its core components. By disaggregating the protocol into five distinct modules, BPaxos achieves double the peak throughput of state-of-the-art alternatives like EPaxos while maintaining a simpler, more verifiable design.

Introduction

Traditional SMR protocols like MultiPaxos and Raft face a "scalability paradox": increasing the number of nodes often degrades performance due to larger quorums and increased network traffic. Furthermore, high-performance protocols like EPaxos are notoriously complex, tightly coupling roles such as leader, acceptor, and replica. This coupling makes them difficult to scale and prone to subtle implementation errors. BPaxos addresses these challenges through a modular architecture that separates the consensus logic from the command ordering and execution logic.

System Architecture and Modularity

The core innovation of BPaxos is its decomposition into five independent modules:

  1. Leaders: Responsible for assigning unique IDs to incoming commands.
  2. Dependency Service: Identifies conflicts between commands to determine execution order.
  3. Proposers: Coordinate the consensus process between other modules.
  4. Consensus Service: Reaches agreement on commands using standard Paxos as a "black box."
  5. Replicas: Execute commands based on the determined dependencies.

This disaggregation allows for horizontal scaling of individual components. Specifically, leaders and proposers—often the primary bottlenecks—can be scaled independently without increasing the load on the consensus acceptors.

Execution Model: From Logs to Graphs

Unlike MultiPaxos, which organizes commands into a linear log, BPaxos is a generalized protocol. It utilizes a directed acyclic graph (DAG) to track command dependencies.

Linear log execution in traditional protocols like MultiPaxos.

By using a dependency graph, BPaxos allows non-conflicting commands to be executed in parallel or out of order, significantly improving concurrency.

Dependency graph execution in BPaxos.

To manage the overhead of dependency tracking, BPaxos employs a 2D array representation for dependency lists, ensuring that metadata remains constant-sized relative to the number of leaders.

Evaluation and Results

BPaxos was evaluated on AWS EC2 using a key-value store benchmark, comparing it against MultiPaxos and EPaxos across various conflict rates and failure tolerances.

Throughput and Scalability

Under a failure tolerance of $f=1$, BPaxos achieved a peak throughput of 70,000–75,000 commands per second, approximately double that of EPaxos (~40k) and MultiPaxos (~30k). With batching (1,000 commands per batch), throughput reached 500,000 commands per second.

Latency Characteristics

While BPaxos exhibits higher base latency (~0.41ms) compared to MultiPaxos (~0.24ms) due to its 8-hop network path, it demonstrates superior performance under high load. By avoiding the queuing delays typical of monolithic protocols, BPaxos maintains stable latency even as throughput increases.

Discussion and Limitations

The modularity of BPaxos simplifies failure recovery; for instance, a replica can propose a "no-op" to the consensus service to unblock itself if a dependency fails. However, the increased number of network hops makes BPaxos less suitable for geo-replicated environments where cross-region latency is high. Additionally, the resource overhead of running five distinct node types may be a constraint in smaller deployments.

Conclusion

Bipartisan Paxos demonstrates that modularity is a powerful tool for scaling distributed consensus. By decoupling bottlenecks and leveraging standard consensus components, BPaxos provides a high-performance, scalable, and easier-to-verify alternative to traditional monolithic SMR protocols.

Summary updated

BibTeX
@misc{whittaker2020bipartisan,
  author = {Michael J. Whittaker and Neil Giridharan and Adriana Szekeres and Joseph M. Hellerstein and Ion Stoica},
  title = {{Bipartisan Paxos: A Modular State Machine Replication Protocol}},
  year = {2020},
  eprint = {2003.00331},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.00331},
}
Figure