保持CALM:分布式一致性很容易实现
Keeping CALM: When Distributed Consistency is Easy
摘要:
现代分布式系统中的一个关键问题是在保持语义一致的同时避免协调成本。直到最近,对于何时实际上需要协调的问题还没有答案。在本文中,我们提出了一个非正式的介绍CALM定理,它回答了这个问题,正是从传统的存储一致性考虑程序的属性。CALM是“一致性作为逻辑单调性”的首字母缩写。CALM定理表明,具有一致的、无协调的分布式实现的程序正是可以用单调逻辑表示的程序。这一理论结果对分布式应用程序的开发人员具有实际意义。我们展示了如何CALM提供了一个建设性的应用级对应传统的“系统”的智慧,如CAP定理显然是负面的结果。我们还讨论了单调思维影响分布式系统设计的方式,以及新的程序设计语言设计和工具如何帮助开发人员编写一致的、无协调的代码。
英文摘要:
A key concern in modern distributed systems is to avoid the cost of coordination while maintaining consistent semantics. Until recently, there was no answer to the question of when coordination is actually required. In this paper we present an informal introduction to the CALM Theorem, which answers this question precisely by moving up from traditional storage consistency to consider properties of programs. CALM is an acronym for "consistency as logical monotonicity". The CALM Theorem shows that the programs that have consistent, coordination-free distributed implementations are exactly the programs that can be expressed in monotonic logic. This theoretical result has practical implications for developers of distributed applications. We show how CALM provides a constructive application-level counterpart to conventional "systems" wisdom, such as the apparently negative results of the CAP Theorem. We also discuss ways that monotonic thinking can influence distributed systems design, and how new programming language designs and tools can help developers write consistent, coordination-free code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。