[Paper Review] MDCC: Multi-Data Center Consistency
MDCC presents a masterless, optimistic commit protocol for multi-data center consistency that achieves strong consistency with only one round-trip message delay in the common case, leveraging Generalized Paxos and quorum-based coordination. It reduces transaction latency by 50% (to 234 ms) and doubles throughput compared to 2PC on the TPC-W benchmark across five geographically distributed data centers, while maintaining consistency during data center outages.
Replicating data across multiple data centers not only allows moving the data closer to the user and, thus, reduces latency for applications, but also increases the availability in the event of a data center failure. Therefore, it is not surprising that companies like Google, Yahoo, and Netflix already replicate user data across geographically different regions. However, replication across data centers is expensive. Inter-data center network delays are in the hundreds of milliseconds and vary significantly. Synchronous wide-area replication is therefore considered to be unfeasible with strong consistency and current solutions either settle for asynchronous replication which implies the risk of losing data in the event of failures, restrict consistency to small partitions, or give up consistency entirely. With MDCC (Multi-Data Center Consistency), we describe the first optimistic commit protocol, that does not require a master or partitioning, and is strongly consistent at a cost similar to eventually consistent protocols. MDCC can commit transactions in a single round-trip across data centers in the normal operational case. We further propose a new programming model which empowers the application developer to handle longer and unpredictable latencies caused by inter-data center communication. Our evaluation using the TPC-W benchmark with MDCC deployed across 5 geographically diverse data centers shows that MDCC is able to achieve throughput and latency similar to eventually consistent quorum protocols and that MDCC is able to sustain a data center outage without a significant impact on response times while guaranteeing strong consistency.
Motivation & Objective
- To address the challenge of achieving strong consistency in wide-area, multi-data center databases with high and variable inter-data center latencies.
- To eliminate reliance on a central coordinator or master node, enhancing resilience to failures.
- To design a commit protocol that matches the performance cost of eventually consistent systems while guaranteeing strong consistency.
- To provide a programming model that handles unpredictable latency spikes without degrading user experience.
- To support atomic, multi-key transactions with conflict detection and value constraints in a distributed, masterless environment.
Proposed method
- MDCC uses Generalized Paxos as the foundation for its optimistic commit protocol, enabling single-round-trip commits in the normal case.
- It ensures quorum-based commit by requiring every commit to be acknowledged by a majority of replicas across data centers.
- The protocol piggybacks commit state notifications on subsequent transactions to avoid additional round trips, improving efficiency.
- It employs a demarcation mechanism to detect write-write conflicts and prevent lost updates.
- It supports commutative updates with value constraints by enforcing consistency through quorum reads and writes.
- The system introduces a service-level-objective (SLO)-aware programming model with callbacks to inform applications of transaction status, even under high-latency conditions.
Experimental results
Research questions
- RQ1Can a masterless, optimistic commit protocol achieve strong consistency with only one network round-trip in wide-area, multi-data center deployments?
- RQ2How can conflict detection and resolution be efficiently integrated into a quorum-based, masterless commit protocol for multi-key transactions?
- RQ3Can a programming model be designed to provide responsive user feedback despite unpredictable inter-data center latency spikes?
- RQ4To what extent can performance be optimized by dynamically selecting between fast and classic Paxos modes based on conflict likelihood?
- RQ5How does the protocol maintain strong consistency and availability during data center outages without sacrificing low-latency performance?
Key findings
- MDCC reduces per-transaction latency by 50% (to 234 ms) compared to 2PC on the TPC-W benchmark across five Amazon data centers.
- Transaction throughput with MDCC is twice that of 2PC, achieving high performance comparable to eventually consistent quorum protocols.
- MDCC maintains strong consistency and availability during data center outages, with minimal impact on response times.
- The protocol achieves single-round-trip commits in the normal case, significantly reducing latency compared to traditional two-phase commit.
- The SLO-aware programming model enables applications to provide timely feedback to users even when transactions are pending due to high-latency messages.
- MDCC successfully supports atomic, multi-key transactions with conflict detection and value constraints in a fully distributed, masterless architecture.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.