Skip to main content
QUICK REVIEW

[Paper Review] Real Differences between OT and CRDT for Co-Editors

Chengzheng Sun, David Sun|arXiv (Cornell University)|Oct 4, 2018
Usability and User Interface DesignComputer Science57 references3 citations
TL;DR

This paper critically examines the real-world differences between Operational Transformation (OT) and Conflict-Free Replicated Data Types (CRDT) in collaborative editing systems, challenging widely held claims that CRDTs are inherently superior. Through a comprehensive analysis of representative systems, it reveals that OT remains dominant in practice due to practical advantages in consistency, performance, and developer usability, despite CRDTs' theoretical benefits in commutativity and simplicity.

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.

Motivation & Objective

  • To investigate why CRDTs, despite their theoretical advantages, are rarely used in real-world collaborative editors.
  • To compare representative OT and CRDT solutions in terms of correctness, performance, complexity, and practicality.
  • To identify the key factors influencing the adoption of OT over CRDT in production co-editing systems.
  • To challenge and refute common claims that CRDTs are universally superior to OT in co-editing applications.
  • To clarify misconceptions in the research and developer communities about the relative merits of OT and CRDT for collaborative editing.

Proposed method

  • Conduct a comparative review of representative OT and CRDT systems used in real co-editing applications.
  • Analyze the design principles, consistency models, and operational semantics of both OT and CRDT solutions.
  • Evaluate systems based on correctness, time and space complexity, implementation complexity, and developer usability.
  • Examine real-world deployments of OT and CRDT-based co-editors to assess practical trade-offs.
  • Use empirical evidence from industrial systems to assess claims of CRDT superiority in performance and correctness.
  • Contrast the theoretical properties of CRDTs with the practical realities of system implementation and maintenance.

Experimental results

Research questions

  • RQ1Why are CRDTs rarely used in production co-editing systems despite their theoretical advantages?
  • RQ2What are the actual differences between OT and CRDT in terms of consistency, performance, and complexity in real-world systems?
  • RQ3To what extent do CRDTs truly outperform OT in correctness, time, and space efficiency in practice?
  • RQ4What practical factors influence the choice between OT and CRDT in real-world collaborative editing systems?
  • RQ5What myths and misconceptions about CRDTs and OT are perpetuated in the research and developer communities?

Key findings

  • OT remains the dominant choice in real-world co-editing systems due to its proven consistency and practical robustness.
  • Despite claims of superiority, CRDTs do not consistently outperform OT in terms of time and space complexity in real implementations.
  • CRDTs often introduce higher implementation and maintenance complexity than acknowledged, undermining their simplicity advantage.
  • The theoretical correctness of CRDTs does not always translate to practical correctness in complex collaborative editing scenarios.
  • Developer usability and tooling support for OT are significantly better than for CRDTs, contributing to OT’s continued dominance.
  • The paper identifies that many CRDT claims of superiority are based on idealized models rather than real-world system behavior.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.