arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1710.04469cs.DCcs.DBcs.DS
收藏

纯基于操作的复制数据类型

Pure Operation-Based Replicated Data Types

Carlos Baquero, Paulo Sergio Almeida, Ali Shoker

摘要:

为服务于世界各地的客户而设计的分布式系统通常利用地理复制来实现低延迟和高可用性。无冗余复制的数据类型(CRDT)允许设计可预测的多主机复制,并支持允许暂时发散的副本的最终一致性。CRDT有两种类型:基于状态的,其中状态在本地改变并被运送和合并到其他副本中;基于操作的,其中操作在本地发出并可靠地因果广播到所有其他副本。然而,基于操作的CRDT的标准定义是非常广泛的,甚至允许发送完整的状态,从而强加存储和传播开销,以及模糊与基于状态的CRDT的区别。我们引入了纯基于操作的CRDT,它只能向其他副本发送操作,与基于状态的CRDT有明显的区别。具有可交换操作的数据类型可以使用标准可靠因果传递被平凡地实现为纯基于操作的CRDT;而具有非可交换操作的数据类型使用PO-Log(操作的部分有序日志)并利用扩展API来实现,即,一个标记的因果稳定广播(TCSB),它在传递时提供额外的因果关系信息,并在稍后通知传递的消息何时变得因果稳定,从而允许进一步的PO日志压缩。该框架说明了一个目录的纯操作为基础的规范,经典的CRDTs,包括计数器,多值寄存器,添加胜和删除胜集。

英文摘要:

Distributed systems designed to serve clients across the world often make use of geo-replication to attain low latency and high availability. Conflict-free Replicated Data Types (CRDTs) allow the design of predictable multi-master replication and support eventual consistency of replicas that are allowed to transiently diverge. CRDTs come in two flavors: state-based, where a state is changed locally and shipped and merged into other replicas; operation-based, where operations are issued locally and reliably causal broadcast to all other replicas. However, the standard definition of op-based CRDTs is very encompassing, allowing even sending the full-state, and thus imposing storage and dissemination overheads as well as blurring the distinction from state-based CRDTs. We introduce pure op-based CRDTs, that can only send operations to other replicas, drawing a clear distinction from state-based ones. Data types with commutative operations can be trivially implemented as pure op-based CRDTs using standard reliable causal delivery; whereas data types having non-commutative operations are implemented using a PO-Log, a partially ordered log of operations, and making use of an extended API, i.e., a Tagged Causal Stable Broadcast (TCSB), that provides extra causality information upon delivery and later informs when delivered messages become causally stable, allowing further PO-Log compaction. The framework is illustrated by a catalog of pure op-based specifications for classic CRDTs, including counters, multi-value registers, add-wins and remove-wins sets.

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

↑