arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1608.03960cs.DCcs.DB
收藏

一种免复制的JSON数据类型

A Conflict-Free Replicated JSON Datatype

Martin Kleppmann, Alastair R. Beresford

摘要:

许多应用程序以通用存储格式(如JSON)对其数据进行建模。该数据结构作为用户输入的结果由应用程序修改。如果在数据的单个副本上顺序地执行这样的修改,则很容易理解,但是如果在多个设备上并发地复制和修改数据,则不清楚语义应该是什么。在本文中,我们提出了一个算法和形式语义的JSON数据结构,自动解决并发修改,使没有更新丢失,并使所有副本收敛到相同的状态(无冲突的复制数据类型或CRDT)。它支持任意嵌套的列表和映射类型,可以通过插入、删除和分配来修改。该算法在客户端执行所有合并操作,不依赖于网络的排序保证,因此适用于网络连接较差的移动设备、对等网络和具有端对端加密的消息传递系统。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑