arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.08733cs.DC
收藏

可识别复制数据类型

Conflict-Aware Replicated Data Types

Nicholas V. Lewchenko, Arjun Radhakrishna, Akash Gaonkar, Pavol Černý

摘要:

我们引入了可感知复制数据类型(CARD)。CARD比无冗余的复制数据类型(CRDT)更有表现力,因为它们支持可能相互冲突的操作。引入冲突操作通常带来在至少一些执行中阻塞操作的需要,导致编程和关于正确性的推理的困难,以及实现中的潜在低效率。CARD的突出方面是,它们允许与CRDT相比的编程和推理,同时允许冲突的算法推理,以便仅在必要时阻止操作。关键思想是要有一种语言,允许将每个操作与一个称为{ \em consistency guard}的两状态谓词相关联,该谓词将正在执行操作的副本的状态与全局状态(从不计算)相关联。一致性防护装置有三个优点。首先,开发操作的程序员只需要选择一个一致性保护,说明操作将依赖于什么。特别是,他们不需要考虑操作与其他操作的冲突。这允许纯粹的{ \em模块化推理}。其次,我们表明,一致性保护允许降低复杂性的推理需要证明不变量,持有卡操作执行。原因是一致性保护允许将关于操作之间的并发性的推理减少为纯粹的{ \em顺序推理}。第三,操作之间的冲突可以通过检查一个操作的效果是否保持另一个操作的一致性保护来算法地推断。

英文摘要:

We introduce Conflict-Aware Replicated Data Types (CARDs). CARDs are significantly more expressive than Conflict-free Replicated Data Types (CRDTs) as they support operations that can conflict with each other. Introducing conflicting operations typically brings the need to block an operation in at least some executions, leading to difficulties in programming and reasoning about correctness, as well as potential inefficiencies in implementation. The salient aspect of CARDs is that they allow ease of programming and reasoning about programs comparable to CRDTs, while enabling algorithmic inference of conflicts so that an operation is blocked only when necessary. The key idea is to have a language that allows associating with each operation a two-state predicate called {\em consistency guard} that relates the state of the replica on which the operation is executing to a global state (which is never computed). The consistency guards bring three advantages. First, a programmer developing an operation needs only to choose a consistency guard that states what the operation will rely on. In particular, they do not need to consider the operation conflicts with other operation. This allows purely {\em modular reasoning}. Second, we show that consistency guard allow reducing the complexity of reasoning needed to prove invariants that hold as CARD operations are executing. The reason is that consistency guard allow reducing the reasoning about concurrency among operations to purely {\em sequential reasoning}. Third, conflicts among operations can be algorithmically inferred by checking whether the effect of one operation preserves the consistency guard of another operation.

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

↑