Complete CALM:规范的一种协调性准则
Complete CALM: A Unified Criterion for Coordination
AI总结:
将CALM定理推广到任意并发规范,提出基于单调性的协调自由实现准则,并衍生出Complete CAP定理。
摘要:
CALM定理将协调自由与单调性联系起来,但局限于关系型转换器和集合包含增长。我们将其推广到任意并发规范。一个规范在声明的精化序下将执行历史映射到结果集;我们证明它允许无协调实现当且仅当其结果是单调的(\emph{Complete CALM})。该准则将CALM、CRDT、I-汇聚和HAT作为实例,能够验证适当的协调性,并产生一个\emph{Complete CAP}伴随定理:一个规范允许一致性、可用性、分区容忍性实现当且仅当它是分布式单调的。
英文摘要:
When does a concurrent system intrinsically need coordination? Too little coordination produces heisenbugs; too much adds latency and sacrifices availability. CALM, CAP, and CRDTs each answer the question for one class of programs, consistency models, or design patterns, in formalisms that cannot be compared or combined, which leaves developers guessing. We provide a simple formalism that unifies the literature and offers new results. An I/O Specification (spec) is a possibility table containing, for each input, every output a system may produce, with partial orders on inputs and outputs. Its runs (event sequences) are consistent when they are confluent as input grows. Functional CALM generalizes the CALM Theorem from Datalog to any function between ordered domains: the runs are consistent exactly when the function is monotone. Complete CALM extends this to nondeterministic specs, where the test is Lifted Monotonicity; Complete CAP follows as a corollary. Highly Available Transactions, Invariant Confluence, and later CALM refinements map into the same framework. Prior CALM results stop at monotonicity: for non-monotone specs, they say only that coordination is needed somewhere. Our unified framework offers constructive results on both sides: it says exactly what coordination a spec needs, and when. A non-monotone spec's outputs drive irrevocable commitments that are required for consistency, enforceable by coordination mechanisms like locks, atomics, or consensus. A composition of specs has tight coordination when an upstream stage makes every commitment the composition needs (sufficient), so later stages need none, and no others (necessary). We show how to order the upstream's outputs to achieve it, explaining designs such as consensus logs in front of a replicated store.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。