Skip to main content
QUICK REVIEW

[Paper Review] Pure Operation-Based Replicated Data Types

Carlos Baquero, Paulo Sérgio Almeida|arXiv (Cornell University)|Oct 12, 2017
Distributed systems and fault toleranceComputer Science19 references8 citations
TL;DR

This paper introduces Pure Operation-Based Replicated Data Types (Pure op-based CRDTs), a novel CRDT model that restricts message dissemination to only operations and their parameters, eliminating state-based metadata from messages. By relying on an extended messaging middleware—Tagged Causal Stable Broadcast (TCSB)—to expose causality and stability information, the framework achieves simpler, more efficient, and semantically distinct op-based CRDTs, with PO-Logs enabling compact state management for non-commutative operations.

ABSTRACT

Distributed systems designed to serve clients across the world often make use of geo-replication to attain low latency and high availability. Conflict-free Replicated Data Types (CRDTs) allow the design of predictable multi-master replication and support eventual consistency of replicas that are allowed to transiently diverge. CRDTs come in two flavors: state-based, where a state is changed locally and shipped and merged into other replicas; operation-based, where operations are issued locally and reliably causal broadcast to all other replicas. However, the standard definition of op-based CRDTs is very encompassing, allowing even sending the full-state, and thus imposing storage and dissemination overheads as well as blurring the distinction from state-based CRDTs. We introduce pure op-based CRDTs, that can only send operations to other replicas, drawing a clear distinction from state-based ones. Data types with commutative operations can be trivially implemented as pure op-based CRDTs using standard reliable causal delivery; whereas data types having non-commutative operations are implemented using a PO-Log, a partially ordered log of operations, and making use of an extended API, i.e., a Tagged Causal Stable Broadcast (TCSB), that provides extra causality information upon delivery and later informs when delivered messages become causally stable, allowing further PO-Log compaction. The framework is illustrated by a catalog of pure op-based specifications for classic CRDTs, including counters, multi-value registers, add-wins and remove-wins sets.

Motivation & Objective

  • Address the ambiguity and inefficiency in standard op-based CRDTs, where prepare functions can embed state and causality metadata, blurring the line with state-based CRDTs.
  • Establish a clear separation between operation-based and state-based CRDTs by enforcing that only operations (not state) are transmitted in messages.
  • Leverage an extended messaging middleware (TCSB) to expose causality and message stability information, reducing the need for explicit state tracking in CRDTs.
  • Design a generic, efficient, and composable framework for implementing CRDTs that supports both commutative and non-commutative operations with minimal overhead.
  • Provide a catalog of pure op-based CRDTs for common data types (e.g., counters, sets, registers), demonstrating correctness and practicality under eventual consistency.

Proposed method

  • Define Pure op-based CRDTs such that the prepare function is restricted to returning only the operation name and its parameters, excluding any state or causality metadata.
  • Use a PO-Log (partially ordered log) as the internal state for non-commutative CRDTs to preserve causal ordering and support concurrent operation handling.
  • Introduce the Tagged Causal Stable Broadcast (TCSB) messaging primitive, which provides per-message causality tags and stability notifications to enable safe compaction of PO-Logs.
  • Decouple causality tracking from the CRDT state by offloading it to the messaging layer, allowing the CRDT to focus solely on operation execution and query resolution.
  • Design effect functions to be generic and commutative where possible, and use PO-Log operations to resolve non-commutative effects through causal ordering and stabilization.
  • Support message compaction via causal stability: once a message is causally stable, its causality metadata can be discarded, reducing state bloat.

Experimental results

Research questions

  • RQ1How can operation-based CRDTs be designed to avoid embedding state or causality metadata in messages, thereby distinguishing them clearly from state-based CRDTs?
  • RQ2What messaging primitives are required to enable pure op-based CRDTs to maintain correctness and efficiency without relying on state in prepare functions?
  • RQ3Can a partially ordered log (PO-Log) effectively manage concurrent operations in non-commutative CRDTs while enabling efficient compaction via causal stability?
  • RQ4To what extent can the TCSB primitive improve the efficiency and simplicity of op-based CRDTs compared to traditional op-based or state-based models?
  • RQ5How do pure op-based CRDTs handle complex operations like clear() in sets, and what trade-offs arise in their design?

Key findings

  • Pure op-based CRDTs eliminate the need to embed causality or state information in messages, resulting in simpler, more efficient messages compared to classical op-based CRDTs.
  • The TCSB messaging primitive enables reliable causal delivery with explicit stability notifications, allowing safe compaction of PO-Logs and reducing long-term state bloat.
  • For commutative operations, pure op-based CRDTs can be implemented without a PO-Log, achieving minimal overhead and simplifying implementation.
  • PO-Logs enable correct handling of non-commutative operations by preserving causal order and supporting obsolescence detection, with stabilization allowing removal of redundant causality metadata.
  • The framework supports a catalog of practical CRDTs including counters, multi-value registers, and add-wins/remove-wins sets, all with formal correctness guarantees.
  • The model demonstrates that state-based and op-based CRDTs can be clearly separated, with pure op-based CRDTs achieving better modularity and reduced complexity when TCSB is available.

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.