[Paper Review] An optimized conflict-free replicated set
This paper proposes an optimized Conflict-Free Replicated Set (Opt-OR-Set) that eliminates tombstones and reduces metadata bloat by leveraging vector clocks to track causal dependencies and coalescing repeated adds. The approach ensures Strong Eventual Consistency with O(|elements| + n) payload size, significantly improving scalability over the original OR-Set while maintaining correctness under concurrent updates and merge operations.
Eventual consistency of replicated data supports concurrent updates, reduces latency and improves fault tolerance, but forgoes strong consistency. Accordingly, several cloud computing platforms implement eventually-consistent data types. The set is a widespread and useful abstraction, and many replicated set designs have been proposed. We present a reasoning abstraction, permutation equivalence, that systematizes the characterization of the expected concurrency semantics of concurrent types. Under this framework we present one of the existing conflict-free replicated data types, Observed-Remove Set. Furthermore, in order to decrease the size of meta-data, we propose a new optimization to avoid tombstones. This approach that can be transposed to other data types, such as maps, graphs or sequences.
Motivation & Objective
- To address the scalability limitations of the original OR-Set CRDT, which suffers from metadata bloat due to tombstones and repeated adds.
- To improve the efficiency of conflict-free replicated sets in distributed systems with eventual consistency.
- To provide a formal framework based on permutation equivalence for reasoning about concurrent semantics of replicated data types.
- To design a new CRDT for sets that supports efficient state-based merging and safe removal without persistent tombstones.
- To generalize the optimization to other CRDTs such as maps, sequences, and graphs.
Proposed method
- Introduces a vector clock mechanism where each replica maintains a vector v[i] to track the number of unique identifiers observed from each source replica.
- Uses unique identifiers (c, i) for each add operation, where c is the local counter and i is the source replica ID.
- Implements a remove operation that discards a pair (e, n) immediately if it is not in the vector v, avoiding tombstone persistence.
- Employs a merge strategy that checks whether an element is in the local payload or was recently removed in the remote payload using vector information.
- Coalesces repeated adds by retaining only the latest identifier for each (element, source) pair, discarding older ones.
- Relies on causal delivery of updates to ensure correctness, with extension to out-of-order delivery using version vectors with exceptions.
Experimental results
Research questions
- RQ1How can we eliminate persistent tombstones in conflict-free replicated sets without compromising consistency?
- RQ2What is the minimal metadata overhead required to ensure correct merging of replicas under concurrent updates?
- RQ3Can we coalesce multiple adds of the same element to reduce state bloat in CRDTs?
- RQ4How can we formally characterize the semantics of concurrent operations in replicated sets using permutation equivalence?
- RQ5To what extent can the optimizations in Opt-OR-Set be generalized to other CRDTs like maps or graphs?
Key findings
- The Opt-OR-Set reduces payload size to O(|elements| + n), where |elements| is the number of present elements and n is the number of replicas, significantly improving over the original OR-Set.
- The removal mechanism eliminates tombstones by discarding removed pairs immediately, relying on vector clocks to infer causal history during merge.
- The approach supports safe state-based merging by using vector information to determine whether a removed element was recently removed in a remote replica.
- Coalescing repeated adds by keeping only the latest identifier per (element, source) pair reduces metadata growth and improves memory efficiency.
- The method maintains Strong Eventual Consistency and is correct under causal delivery, with a generalization path to other CRDTs such as sequences and graphs.
- The optimization is formally grounded in the Principle of Permutation Equivalence, ensuring that concurrent executions behave as expected under sequential semantics.
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.