基于通用转换框架的OT与CRDT一致性差异分析
Real Differences between OT and CRDT under a General Transformation Framework for Consistency Maintenance in Co-Editors
摘要:
OT(操作转换)是在20世纪80年代末为支持实时协同编辑器而发明的,并已发展成为当今工作协同编辑器中使用的核心技术,并被主要工业产品采用。CRDT(可交换复制数据类型)在2006年左右首次提出,名为WOOT(WithOut Operational Transformation)。后续的CRDT变体通常被标记为“后OT”技术,能够使并发操作在协同编辑器中原生地可交换。最重要的是,CRDT解决方案广泛声称优于OT解决方案,并经常将OT描述为一种不正确,复杂和低效的技术。然而,十多年后,OT仍然是构建绝大多数共同编辑器的选择,而CRDT很少在工作共同编辑器中找到。现实和CRDT的优势之间的矛盾一直是共同编辑社区中许多混乱和争论的根源。绝大多数的共同编辑不幸地选择了错误和低劣的OT,或者那些CRDT的说法是错误的?OT和CRDT对于共同编辑者的真正区别是什么?在现实世界中,OT和CRDT之间的选择背后的关键因素和潜在原因是什么?为了实事求是,我们着手对具有代表性的OT和CRDT解决方案以及基于它们的工作共同编辑进行全面和批判性的审查。从这项工作中,我们取得了关于OT和CRDT的重要发现,并揭示了事实和证据,驳斥了CRDT对OT的所有说法。我们在一系列的三篇文章中报告了我们的发现,目前的文章是这个系列的第一篇。我们希望这项工作的发现有助于消除围绕OT和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 capable of making concurrent operations natively commutative in co-editors. On top of that, CRDT solutions have made broad claims of superiority over OT solutions, and routinely portrayed OT as an incorrect, complex and inefficient technique. 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. Contradictions between the reality and CRDT's purported advantages have been the source of much confusion and debate in co-editing communities. Have the vast majority of co-editors been unfortunate in choosing the faulty and inferior OT, or those CRDT claims are false? What are the real differences between OT and CRDT for co-editors? What are the key factors and underlying reasons behind the choices between OT and CRDT in the real world? To seek truth from facts, we set out to conduct a comprehensive and critical review on 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 report our discoveries in a series of three articles and the current article is the first one in this series. We hope the discoveries from this work help clear up common misconceptions and confusions surrounding OT and CRDT, and accelerate progress in co-editing technology for real world applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。