Real Differences between OT and CRDT in Correctness and Complexity for Consistency Maintenance in Co-Editors

Author:

Sun David1,Sun Chengzheng2,Ng Agustina2,Cai Weiwei2

Affiliation:

1. Codox Inc., San Jose, CA, USA

2. Nanyang Technological University, Singapore, Singapore

Abstract

OT (Operational Transformation) was invented for supporting real-time co-editors in the late 1980s and has evolved to become core techniques widely used in today's working co-editors and adopted in 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 often portrayed OT as an incorrect and inefficient technique. Over one decade later, however, CRDT is rarely found in working co-editors; 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 researcher and developer communities. 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. These discoveries help explain the underlying reasons for the choice between OT and CRDT in the real world. We report these results in a series of three articles. In this article (the second in the series), we reveal the differences between OT and CRDT in their basic approaches to realizing the same general transformation and how such differences had resulted in different technical challenges and consequential correctness and complexity issues. Moreover, we reveal hidden complexity and algorithmic flaws with representative CRDT solutions, and discuss common myths and facts related to correctness and complexity of OT and CRDT. We hope the discoveries from this work help clear up common myths 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)

Reference88 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 7 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. The Online Pause and Resume Problem: Optimal Algorithms and An Application to Carbon-Aware Load Shifting;Proceedings of the ACM on Measurement and Analysis of Computing Systems;2023-12-07

2. Near-optimal Online Algorithms for Joint Pricing and Scheduling in EV Charging Networks;Proceedings of the 14th ACM International Conference on Future Energy Systems;2023-06-16

3. LaserShoes: Low-Cost Ground Surface Detection Using Laser Speckle Imaging;Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems;2023-04-19

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

5. Extensible Conflict-Free Replicated Datatypes for Real-time Collaborative Software Engineering;Annals of Computer Science and Information Systems;2022-09-26

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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