Skip to main content
QUICK REVIEW

[Paper Review] Exploiting Commutativity For Practical Fast Replication

Seo Jin Park, John K. Ousterhout|arXiv (Cornell University)|Oct 26, 2017
Distributed systems and fault toleranceComputer Science10 references6 citations
TL;DR

This paper proposes CURP, a replication protocol that enables linearizable updates in 1 RTT by exploiting commutativity, allowing clients to replicate operations to witnesses in parallel with primary execution. It reduces write latency by 2x and increases throughput by 4x in RAMCloud, while adding only 0.4 µs overhead for 3-way replication compared to unreplicated performance.

ABSTRACT

Traditional approaches to replication require client requests to be ordered before making them durable by copying them to replicas. As a result, clients must wait for two round-trip times (RTTs) before updates complete. In this paper, we show that this entanglement of ordering and durability is unnecessary for strong consistency. Consistent Unordered Replication Protocol (CURP) allows clients to replicate requests that have not yet been ordered, as long as they are commutative. This strategy allows most operations to complete in 1 RTT (the same as an unreplicated system). We implemented CURP in the Redis and RAMCloud storage systems. In RAMCloud, CURP improved write latency by ~2x (13.8 us -> 7.3 us) and write throughput by 4x. Compared to unreplicated RAMCloud, CURP's latency overhead for 3-way replication is just 0.4 us (6.9 us vs 7.3 us). CURP transformed a non-durable Redis cache into a consistent and durable storage system with only a small performance overhead.

Motivation & Objective

  • To reduce replication latency in consistent storage systems without sacrificing strong consistency.
  • To decouple the ordering and durability phases of replication, which are traditionally entangled in 2-RTT protocols.
  • To enable fast, durable replication in systems where most operations are commutative, such as key-value stores and distributed storage.
  • To support both local consistent reads and geo-replicated consistency with minimal performance cost.

Proposed method

  • Clients replicate each operation to one or more witness replicas in parallel with sending the request to the primary server.
  • The primary executes the operation and responds to the client without waiting for full replication, relying on witnesses to ensure durability.
  • Operations are only considered durable if they are commutative and successfully witnessed; non-commutative operations still require 2 RTTs.
  • In the event of a primary crash, witness information is combined with normal replicas to reconstruct a consistent state.
  • The protocol works with any backup mechanism, including state machine replication and network-attached storage, and integrates with consensus protocols like Raft and Viewstamped Replication.
  • It enables strongly consistent reads from local backups by checking commutativity with local witnesses, achieving 0 RTT for local reads.

Experimental results

Research questions

  • RQ1Can replication latency be reduced from 2 RTTs to 1 RTT while maintaining strong consistency?
  • RQ2Can commutativity be exploited to decouple ordering and durability in replication protocols?
  • RQ3Does this approach scale efficiently in high-performance systems like RAMCloud and Redis?
  • RQ4Can the protocol be applied to both primary-backup and consensus-based systems without sacrificing performance or correctness?
  • RQ5How does the protocol perform in geo-replicated environments with wide-area network latencies?

Key findings

  • In RAMCloud, CURP reduced write latency from 13.8 µs to 7.3 µs, achieving a 2x improvement.
  • CURP increased write throughput by 3.8x in RAMCloud, demonstrating significant scalability gains.
  • For 3-way replication, CURP added only 0.4 µs of overhead compared to unreplicated RAMCloud (6.9 µs vs 7.3 µs).
  • In Redis, CURP enabled durable and consistent storage with performance comparable to the original non-durable Redis.
  • CURP achieved 1 RTT latency for update operations in asynchronous networks, making it the first such protocol to do so.
  • Compared to Speculative Paxos and NOPaxos, CURP added only 0.4 µs of overhead, significantly less than their 16–25 µs overheads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.