[Paper Review] Abstract unordered and ordered trees CRDT
This paper presents a family of Conflict-free Replicated Data Types (CRDTs) for unordered and ordered trees, enabling eventual consistency in distributed systems. It leverages existing set CRDTs and introduces layered correction algorithms to resolve concurrency conflicts in tree structures, while a novel WOOTR sequence CRDT enables efficient, consistent positioning for ordered trees.
Trees are fundamental data structure for many areas of computer science and system engineering. In this report, we show how to ensure eventual consistency of optimistically replicated trees. In optimistic replication, the different replicas of a distributed system are allowed to diverge but should eventually reach the same value if no more mutations occur. A new method to ensure eventual consistency is to design Conflict-free Replicated Data Types (CRDT). In this report, we design a collection of tree CRDT using existing set CRDTs. The remaining concurrency problems particular to tree data structure are resolved using one or two layers of correction algorithm. For each of these layer, we propose different and independent policies. Any combination of set CRDT and policies can be constructed, giving to the distributed application programmer the entire control of the behavior of the shared data in face of concurrent mutations. We also propose to order these trees by adding a positioning layer which is also independent to obtain a collection of ordered tree CRDTs.
Motivation & Objective
- To design conflict-free replicated data types (CRDTs) for distributed trees that ensure eventual consistency without synchronization.
- To address concurrency issues in tree replication—such as conflicting insertions, deletions, and path uniqueness—using layered correction algorithms.
- To extend CRDT trees to support ordering of sibling nodes via a new sequence editing CRDT called WOOTR.
- To give application developers full control over conflict resolution semantics through composable policies for set CRDTs and correction layers.
- To evaluate the scalability and performance trade-offs of different CRDT tree variants under high concurrency.
Proposed method
- Constructs unordered tree CRDTs using graph theory (node and edge sets), leveraging existing set CRDTs (e.g., LWW-Set, OR-Set) as the underlying payload.
- Introduces a two-layer correction mechanism: the first ensures the graph remains rooted, the second enforces unique paths to prevent cycles.
- Applies independent, composable policies for each correction layer to allow flexible conflict resolution semantics.
- Uses word-theory-based tree representation where paths are unique strings, enabling construction via a single set CRDT and a connection layer.
- Introduces WOOTR—a new commutative sequence CRDT that supports element reintroduction and treats concurrent insertions at the same position as equivalent operations.
- Extends unordered tree CRDTs to ordered trees by associating WOOTR-generated position identifiers to nodes or edges, ensuring consistent ordering across replicas.
Experimental results
Research questions
- RQ1How can tree CRDTs be constructed using only existing set CRDTs while ensuring eventual consistency?
- RQ2What layered correction strategies can resolve concurrent modifications (e.g., insertions, deletions) in tree structures without synchronization?
- RQ3How can ordered tree semantics be achieved in a CRDT model that supports eventual consistency and concurrent updates?
- RQ4What are the performance and scalability trade-offs of different CRDT tree variants, especially in high-concurrency scenarios?
- RQ5Can a new sequence CRDT (WOOTR) be designed to support efficient, conflict-free reinsertion and consistent positioning in tree CRDTs?
Key findings
- The proposed CRDT tree family supports eventual consistency through composable policies and existing set CRDTs, enabling conflict-free replication without coordination.
- The two-layer correction mechanism (rooting and path uniqueness) effectively resolves concurrency issues in graph- and edge-based tree representations.
- WOOTR, the new sequence CRDT, allows reintroduction of deleted elements and treats concurrent insertions at the same position as equivalent, improving consistency and efficiency.
- Ordered tree CRDTs are constructed by extending unordered tree CRDTs with WOOTR-based position identifiers, enabling consistent sibling ordering across replicas.
- Different combinations of set CRDTs and policies yield distinct conflict resolution behaviors, giving application developers full control over semantics.
- Performance varies significantly: 2P-Set-based variants are efficient, while some graph- and edge-tree policies are computationally costly due to complex conflict resolution logic.
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.