← 研踪 PaperTrailarXiv:2602.09435 · v5
Complete CALM: A Unified Criterion for Coordination
首次提交 2026-02-10 13:59
版本更新 2026-11-24 05:12
雷达观测 2026-11-25 10:15
摘要
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.
作者备注:49 pages in total; 23 body pages and remainder appendices and references
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v5 · 2026-11-24 05:12 · 最新观测版本
Complete CALM: A Unified Criterion for Coordination
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.
查看此版本解读 →查看此版本原文 ↗