Skip to main content
QUICK REVIEW

[论文解读] Real Differences between OT and CRDT for Co-Editors

Chengzheng Sun, David Sun|arXiv (Cornell University)|Oct 4, 2018
Usability and User Interface DesignComputer Science参考文献 57被引用 3
一句话总结

本文批判性地审视了协作编辑系统中操作转换(OT)与无冲突复制数据类型(CRDT)在现实世界中的差异,挑战了CRDT在本质上优于OT的普遍观点。通过对其代表性系统的全面分析,揭示了尽管CRDT在可交换性和简洁性方面具有理论优势,但OT在一致性、性能和开发者可用性方面的实际优势,使其在实践中仍占主导地位。

ABSTRACT

OT (Operational Transformation) was invented for supporting real-time co-editors in the late 1980s and has evolved to become a core technique used in today's working co-editors and adopted in major industrial products. CRDT (Commutative Replicated Data Type) for co-editors was first proposed around 2006, under the name of WOOT (WithOut Operational Transformation). Follow-up CRDT variations are commonly labeled as "post-OT" techniques capable of making concurrent operations natively commutative, and have made broad claims of superiority over OT solutions, in terms of correctness, time and space complexity, simplicity, etc. Over one decade later, however, CRDT solutions are rarely found in working co-editors, while OT solutions remain the choice for building the vast majority of co-editors. Contradictions between this reality and CRDT's purported advantages have been the source of much debate and confusion in co-editing research and developer communities. What is CRDT really to co-editing? What are the real differences between OT and CRDT for co-editors? What are the key factors that may have affected the adoption of and choice between OT and CRDT for co-editors in the real world? In this paper, we report our discoveries, in relation to these questions and beyond, from a comprehensive review and comparison study on representative OT and CRDT solutions and working co-editors based on them. Moreover, this work reveals facts and presents evidences that refute CRDT claimed advantages over OT. We hope the results reported in this paper will help clear up common myths, misconceptions, and confusions surrounding alternative co-editing techniques, and accelerate progress in co-editing technology for real world applications.

研究动机与目标

  • 调查为何尽管CRDT具有理论优势,但在实际协作编辑器中却很少被使用。
  • 从正确性、性能、复杂性和实用性等方面,对比代表性OT与CRDT解决方案。
  • 识别影响生产环境中OT取代CRDT采用的关键因素。
  • 挑战并反驳CRDT在协作编辑应用中普遍优于OT的常见说法。
  • 澄清研究界和开发人员社区中关于OT与CRDT在协作编辑中相对优势的误解。

提出的方法

  • 对实际协作编辑应用中使用的代表性OT与CRDT系统进行对比审查。
  • 分析OT与CRDT解决方案的设计原则、一致性模型和操作语义。
  • 基于正确性、时间与空间复杂度、实现复杂度以及开发者可用性对系统进行评估。
  • 考察基于OT与CRDT的协作编辑器在真实世界中的部署,以评估实际权衡。
  • 利用工业系统中的实证证据,评估关于CRDT在性能与正确性方面优越性的说法。
  • 将CRDT的理论特性与系统实现与维护的实际现实进行对比。

实验结果

研究问题

  • RQ1为何尽管CRDT具有理论优势,但在生产级协作编辑系统中却很少被使用?
  • RQ2在现实系统中,OT与CRDT在一致性、性能和复杂性方面的实际差异是什么?
  • RQ3在实践中,CRDT在正确性、时间效率和空间效率方面究竟在多大程度上优于OT?
  • RQ4在现实世界的协作编辑系统中,影响OT与CRDT选择的实际因素有哪些?
  • RQ5研究界和开发人员社区中关于CRDT与OT的哪些神话和误解被持续传播?

主要发现

  • 由于其经过验证的一致性和实际的鲁棒性,OT在现实世界的协作编辑系统中仍占主导地位。
  • 尽管有优越性宣称,CRDT在实际实现中并未在时间与空间复杂度方面始终优于OT。
  • CRDT的实现与维护复杂度往往高于其被承认的程度,从而削弱了其简洁性优势。
  • CRDT的理论正确性并不总能转化为复杂协作编辑场景下的实际正确性。
  • OT在开发者可用性和工具支持方面显著优于CRDT,这进一步巩固了OT的持续主导地位。
  • 本文指出,许多关于CRDT优越性的说法基于理想化模型,而非真实世界系统的行为。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。