A Conflict-Free Replicated JSON Datatype
Open Access
- 24 April 2017
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Parallel and Distributed Systems
- Vol. 28 (10) , 2733-2746
Abstract
Many applications model their data in a general-purpose storage format such as JSON. This data structure is modified by the application as a result of user input. Such modifications are well understood if performed sequentially on a single copy of the data, but if the data is replicated and modified concurrently on multiple devices, it is unclear what the semantics should be. In this paper we present an algorithm and formal semantics for a JSON data structure that automatically resolves concurrent modifications such that no updates are lost, and such that all replicas converge towards the same state (a conflict-free replicated datatype or CRDT). It supports arbitrarily nested list and map types, which can be modified by insertion, deletion and assignment. The algorithm performs all merging client-side and does not depend on ordering guarantees from the network, making it suitable for deployment on mobile devices with poor network connectivity, in peer-to-peer networks, and in messaging systems with end-to-end encryption.Keywords
All Related Versions
Funding Information
- The Boeing Company
This publication has 31 references indexed in Scilit:
- Specification and Complexity of Collaborative Text Editing2016
- The problem with embedded CRDT counters and a solution2016
- LSEQ2013
- Cloud Types for Eventual ConsistencyLecture Notes in Computer Science, 2012
- Scalable XML Collaborative Editing with UndoLecture Notes in Computer Science, 2010
- Dynamo2007
- Customizable Collaborative Editor Relying on treeOPT Algorithm2003
- An algebraic approach to file synchronization2001
- What is a file synchronizer?1998
- Managing update conflicts in Bayou, a weakly connected replicated storage systemACM SIGOPS Operating Systems Review, 1995