Skip to main content
QUICK REVIEW

[Paper Review] Observable atomic consistency for CvRDTs

Xin Zhao, Philipp Haller|arXiv (Cornell University)|Feb 26, 2018
Distributed systems and fault toleranceComputer Science36 references4 citations
TL;DR

This paper proposes Observable Atomic Consistency (OAC) for Conflict-free Replicated Data Types (CvRDTs), enabling on-demand strong consistency through a novel protocol (OACP) that combines commutative operations with reliable total order broadcast. OACP reduces coordination overhead and message exchange compared to prior protocols like GSP, while maintaining state convergence and supporting non-monotonic operations.

ABSTRACT

The development of distributed systems requires developers to balance the need for consistency, availability, and partition tolerance. Conflict-free replicated data types (CRDTs) are widely used in eventually consistent systems to reduce concurrency control. However, due to the lack of consistent non-monotonic operations, the usage of CRDTs can be difficult. In this paper, we propose a new consistency protocol, the observable atomic consistency protocol (OACP). OACP enables a principled relax- ation of strong consistency to improve performance in specific scenarios. OACP combines the advantages of mergeable data types, specifically, convergent replicated data types, and reliable total order broadcast to provide on-demand strong consistency. By providing observable atomic consistency, OACP avoids the anomalies of related protocols. We provide a distributed, cluster-enabled implementation of OACP based on Akka, a widely-used actor-based middleware. Our experimental evaluation shows that OACP can reduce the coordination between replicas compared to other protocols providing atomic consistency in several bench- marks. Our results also suggest that OACP gains availability through mergeable data types and provides acceptable latency for achieving strong consistency.

Motivation & Objective

  • Address the limitation of CvRDTs in supporting consistent non-monotonic operations, which leads to stale reads and complex application logic.
  • Provide a principled relaxation of strong consistency to improve performance in distributed systems without sacrificing correctness.
  • Design a consistency model that guarantees observable atomic consistency, ensuring replicas converge consistently after atomic operations.
  • Implement and evaluate a cluster-enabled, actor-based OACP system using Akka for real-world deployment scenarios.
  • Demonstrate that OACP reduces coordination and message exchange compared to existing protocols like GSP, especially under high commutative operation workloads.

Proposed method

  • Define the Observable Atomic Consistency (OAC) model as a formal consistency abstraction that enables on-demand strong consistency in CvRDTs.
  • Introduce two operation types: CvOps (commutative, state-based updates) and TOps (totally-ordered, atomic operations) to coordinate state convergence.
  • Design the Observable Atomic Consistency Protocol (OACP) to ensure all replicas synchronize and lock their states atomically upon TOp execution.
  • Use reliable total order broadcast (RTOB) to enforce global ordering of TOps, ensuring all replicas apply them in the same sequence.
  • Implement OACP on top of Akka actors to support distributed, cluster-enabled deployment with fault tolerance and scalability.
  • Optimize OACP into O²ACP by reducing message overhead through batching and state buffering during locked phases.

Experimental results

Research questions

  • RQ1Can a consistency model be designed that enables non-monotonic operations in CvRDTs without sacrificing convergence or consistency guarantees?
  • RQ2How can strong consistency be provided on-demand in eventually consistent systems while minimizing coordination overhead?
  • RQ3What is the performance impact of OACP compared to existing protocols like GSP in terms of message exchange, latency, and throughput?
  • RQ4To what extent does the proportion of commutative operations affect the coordination cost in OACP and its optimized variant O²ACP?
  • RQ5Can OACP be effectively deployed in real-world distributed applications, such as a Twitter-like microblogging service?

Key findings

  • OACP reduces the number of exchanged protocol messages by up to 57% (from ~1400 to ~600) when the proportion of CvOps increases from 0% to 95% in microbenchmarks.
  • The optimized O²ACP variant maintains stable message counts across varying workloads, showing better performance stability than OACP under mixed operation patterns.
  • OACP achieves strong consistency with acceptable latency, demonstrating that high availability and low coordination can coexist in distributed systems.
  • Systems using OACP exhibit state convergence, proving that the OAC model is formally correct and consistent under the proposed protocol.
  • In a Twitter-like microblogging case study, OACP's optimization (O²ACP) significantly reduces coordination cost while maintaining consistency.
  • The experimental evaluation confirms that OACP outperforms the baseline GSP protocol in throughput and coordination efficiency, particularly in workloads rich in commutative operations.

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.