arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.01517cs.DCcs.HCcs.SE
收藏

OT和CRDT在构建协同编辑系统和实际应用中的实际差异

Real Differences between OT and CRDT in Building Co-Editing Systems and Real World Applications

David Sun, Chengzheng Sun, Agustina Ng, Weiwei Cai

摘要:

OT(操作转换)是在20世纪80年代末为支持实时协同编辑器而发明的,并已发展成为当今工作协同编辑器中使用的核心技术,并被主要工业产品采用。CRDT(可交换复制数据类型)在2006年左右首次提出,名为WOOT(WithOut Operational Transformation)。后续的CRDT变体通常被标记为“后OT”技术,并在正确性、时间和空间复杂度、简单性等方面广泛声称优于OT解决方案。然而,十多年后,OT仍然是构建绝大多数共同编辑器的选择,而CRDT很少在工作共同编辑器中找到。为什么?为什么?为了实事求是,我们着手对具有代表性的OT和CRDT解决方案以及基于它们的工作共同编辑进行全面和批判性的审查。从这项工作中,我们取得了关于OT和CRDT的重要发现,并揭示了事实和证据,驳斥了CRDT对OT的所有说法。我们在三篇相关和互补的文章中介绍了我们的发现。在前两篇文章中,我们已经揭示了OT和CRDT在共同编辑器中遵循相同的通用转换方法方面的相似性,以及它们在正确性和复杂性方面的真正差异。在这篇文章中,我们研究了建设工作的共同编辑在塑造OT和CRDT研究和解决方案中的作用,以及在现实世界的共同编辑和行业产品中OT和CRDT之间的选择所产生的差异。特别是,我们回顾了共同编辑器从研究车辆到现实世界的应用程序的演变,并讨论了代表性的基于OT的共同编辑器和替代方法,在行业产品和开源项目。此外,我们评估基于CRDT的共同编辑器与已发布的CRDT解决方案的关系,并澄清一些神话周围的“点对点”共同编辑。

英文摘要:

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 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, OT remains the choice for building the vast majority of co-editors, whereas CRDT is rarely found in working co-editors. Why? To seek truth from facts, we set out to conduct a comprehensive and critical review of representative OT and CRDT solutions and working co-editors based on them. From this work, we have made important discoveries about OT and CRDT, and revealed facts and evidences that refute CRDT claims over OT on all accounts. We present our discoveries in three related and complementary articles. In prior two articles, we have revealed the similarities of OT and CRDT in following the same general transformation approach in co-editors, and their real differences in correctness and complexity. In this article, we examine the role of building working co-editors in shaping OT and CRDT research and solutions, and consequential differences in the choice between OT and CRDT in real world co-editors and industry products. In particular, we review the evolution of co-editors from research vehicles to real world applications, and discuss representative OT-based co-editors and alternative approaches in industry products and open source projects. Moreover, we evaluate CRDT-based co-editors in relation to published CRDT solutions, and clarify some myths surrounding "peer-to-peer" co-editing.

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

↑