Real Differences between OT and CRDT under a General Transformation Framework for Consistency Maintenance in Co-Editors

Author:

Sun Chengzheng1,Sun David2,Ng Agustina1,Cai Weiwei1,Cho Bryden1

Affiliation:

1. Nanyang Technological University, Singapore, Singapore

2. wave.codox.io, San Jose, CA, USA

Abstract

OT (Operational Transformation) was invented for supporting real-time co-editors in the late 1980s and has evolved to become a collection of core techniques widely 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 commutativity 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, CRDT is rarely found in working co-editors, and OT remains the choice for building the vast majority of today's co-editors. Contradictions between the reality and CRDT's purported advantages have been the source of much confusion and debate in co-editing research and developer 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? A thorough examination of these questions is relevant not only to researchers who are exploring the frontiers of co-editing technologies and systems, but also to practitioners who are seeking viable techniques to build real world applications. 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 articles and the current article is the first one in this series. In this paper, we present a general transformation framework for consistency maintenance in co-editors, which was distilled from dissecting and examining representative OT and CRDT solutions (and other alternative solutions) during this work, and report our discoveries under the guidance of this framework. In particular, we reveal that CRDT is like OT in following a general transformation approach, but achieves the same transformation indirectly, in contrast to OT direct transformation approach; and CRDT is not natively commutative for concurrent co-editing operations, but has to achieve the same OT commutativity indirectly as well, with consequential correctness and complexity issues. Uncovering the hidden transformation nature and demystifying the commutativity property of CRDT provides much-needed clarity about what CRDT really is and is not to co-editing, and serves as the foundation to explore the real differences between OT and CRDT in correctness, complexity, implementation, and real world applications, which are reported in follow-up articles. We hope 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.?

Funder

Ministry of Education - Singapore

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Networks and Communications,Human-Computer Interaction,Social Sciences (miscellaneous)

Reference84 articles.

1. Agustina Liu F. Xia S. Shen H.F. and Sun. C. CoMaya: Incorporating advanced collaboration capabilities into 3D digital media design tools. ACM CSCW (2008) 5--8. Agustina Liu F. Xia S. Shen H.F. and Sun. C. CoMaya: Incorporating advanced collaboration capabilities into 3D digital media design tools. ACM CSCW (2008) 5--8.

2. Agustina and Sun. C. Dependency-conflict detection in real-time collaborative 3D design systems. ACM CSCW (2013) 715--728. Agustina and Sun. C. Dependency-conflict detection in real-time collaborative 3D design systems. ACM CSCW (2013) 715--728.

3. Agustina and Sun C. Operational transformation for real-time synchronization of shared workspace in cloud storage. ACM GROUP (2016) 61--70. Agustina and Sun C. Operational transformation for real-time synchronization of shared workspace in cloud storage. ACM GROUP (2016) 61--70.

4. Ahmed-Nacer Ignat M. C.-L Oster G. Roh H.-G. and Urso P. Evaluating CRDTs for real-time document editing ACM DocEng (2011) 103--112. Ahmed-Nacer Ignat M. C.-L Oster G. Roh H.-G. and Urso P. Evaluating CRDTs for real-time document editing ACM DocEng (2011) 103--112.

5. Andr´e L. Martin S. Oster G. and Ignat C.-L. Supporting adaptable granularity of changes for massive-scale collaborative editing. IEEE CollaborateCom (2013) 50--59. Andr´e L. Martin S. Oster G. and Ignat C.-L. Supporting adaptable granularity of changes for massive-scale collaborative editing. IEEE CollaborateCom (2013) 50--59.

Cited by 10 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. A Survey of Concurrency Control Algorithms in Collaborative Applications;Proceedings of the 8th International Conference on Advanced Intelligent Systems and Informatics 2022;2022-11-18

2. Real-time collaborative multi-level modeling by conflict-free replicated data types;Software and Systems Modeling;2022-11-01

3. Self‐compressing object sequence for consistency maintenance in co‐editors;Software: Practice and Experience;2022-04-21

4. A General Matrix Factorization Framework for Recommender Systems in Multi-access Edge Computing Network;Mobile Networks and Applications;2022-02-04

5. Code Caching-Assisted Computation Offloading and Resource Allocation for Multi-User Mobile Edge Computing;IEEE Transactions on Network and Service Management;2021-12

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3