HackerPapers

arXiv:1810.02137cs.DC

Real Differences between OT and CRDT for Co-Editors

Chengzheng Sun, David Sun, Agustina, Weiwei Cai

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.

arXiv comments
33 pages
Journal reference
DOI
Subjects
cs.DCDistributed, Parallel, and Cluster Computing cs.HCHuman-Computer Interaction cs.SESoftware Engineering

On Hacker News

Linked by 5 identifiable commenters in 6 comments across 6 threads, from Oct 2018 to Jul 2023. Found in 2 HN submissions from Oct 2018 to Oct 2018. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments6 threads

    • A comment from "https://news.ycombinator.com/item?id=36208585" A Critical Examination of "The Art of the Fugue" Paper in Relation to OT The introductory paragraph of the paper's abstract states: "Existing algorithms for replicated lists, which are widely used in collaborative…

      shunzaView on HNParent context

    • A Critical Examination of "The Art of the Fugue" Paper in Relation to OT The introductory paragraph of the paper's abstract states: "Existing algorithms for replicated lists, which are widely used in collaborative text editors, suffer from a problem: when two users concurrently…

      czsunView on HNParent context

    • I have been using desktop applications for more than 30 years and web for more than 20 years now. I loathe web based applications as the next guy but can appreciate the convenient it provides. As anything in life, it comes like a cycle and and after web it will probably be…

      teleforceView on HNParent context

    • This previous HN discussions on OT vs CRDT paper is an excellent overview of the topics [1],[2]. From the paper conclusions "Our discoveries from this work revealed facts and evidences that refute CRDT superiority claims over OT on all accounts, which helps to explain the…

      teleforceView on HNParent context

    • I found this recent paper highly enlightening: “Real Differences between OT and CRDT for Co-Editors”– Chengzheng Sun, David Sun, Agustina, Weiwei Cai, October 2018. Arxiv meta: https://arxiv.org/abs/1810.02137 PDF: https://arxiv.org/pdf/1810.02137.pdf It’s well written imo. The…

      AnthonBergView on HNParent context

    • Oh, that's really tempting :) Believe us! There are people in our team who would love to dive deeper into CRDT. We confirm that OT definitely has its problems. It's elegant at first but gets really dirty the deeper you dive into this... hole. Especially the undo feature adds to…

      ReinmarView on HNParent context

Submitted to Hacker News

  • Real Differences Between OT and CRDT for Co-Editors
  • Real differences between ot and crdt for co-editors

    There is a hot topic on two consistency maintenance techniques for Co-editors, Operational Transformation (OT) and Commutative replicated data type(CRDT). Choosing between them for implementing a real-world co-editor is hard. Common evidence of OT-supporters is that OT has been widely adopted in industrial products, like Google Docs, Dropbox Paper, etc., and OT is a reliable technique. Common evidence of CRDT-supporters is that Google Wave OT requires a central server, but CRDT does not have…

Connected through shared HN threads, not inferred similarity or a recommendation.