English

Extending JSON CRDTs with Move Operations

Distributed, Parallel, and Cluster Computing 2024-09-25 v2

Abstract

Conflict-Free Replicated Data Types (CRDTs) for JSON allow users to concurrently update a JSON document and automatically merge the updates into a consistent state. Moving a subtree in a map or reordering elements in a list within a JSON CRDT is challenging: naive merge algorithms may introduce unexpected results such as duplicates or cycles. In this paper, we introduce an algorithm for move operations in a JSON CRDT that handles the interaction with concurrent non-move operations, and uses novel optimisations to improve performance. We plan to integrate this algorithm into the Automerge CRDT library.

Keywords

Cite

@article{arxiv.2311.14007,
  title  = {Extending JSON CRDTs with Move Operations},
  author = {Liangrun Da and Martin Kleppmann},
  journal= {arXiv preprint arXiv:2311.14007},
  year   = {2024}
}

Comments

7 pages, 4 figures

R2 v1 2026-06-28T13:29:30.478Z