Near Real-Time Peer-to-Peer Shared Editing on Extensible Data Types
Authors:
Open Access
- 13 November 2016
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 39-49
Abstract
Near real-time collaboration using Web browsers is becoming rapidly more and more popular for many applications such as text editing, coding, sketching and others. These applications require reliable algorithms to ensure consistency among the participating Web clients. Operational Transformation (OT) and more recently Commutative Replicated Data Types (CRDT) have become widely adopted solutions for this kind of problem. However, most existing approaches are non-trivial and require trade-offs between expressiveness, suitable infrastructure, performance and simplicity. The ever growing number of potential use cases, the new possibilities of cutting-edge messaging protocols that shaped the near real-time Web, and the use of N-way communication between clients (e.g. WebRTC), create a need for peer-to-peer algorithms that perform well and are not restricted to only a few supported data types. In this paper, we present YATA, an approach for peer-to-peer shared editing applications that ensures convergence, preserves user intentions, allows offline editing and can be utilized for arbitrary data types in the Web browser. Using Yjs, its open-source JavaScript library implementation, we have evaluated the performance and multiple usage of YATA in Web and mobile browsers, both on test and real-world data. The promising evaluation results as well as the uptake by many commercial vendors and open-source projects indicate a wide applicability of YATA.Keywords
Funding Information
- Seventh Framework Programme (FP7-318209)
- European Commission (531262-LLP-2012-ES-KA3-KA3MP)
This publication has 26 references indexed in Scilit:
- Yjs: A Framework for Near Real-Time P2P Shared Editing on Arbitrary Data Types2015
- Collaborative Drawing Annotations on Web Videos2015
- Formal Verification of Operational TransformationLecture Notes in Computer Science, 2014
- Shared Editing on the Web: A Classification of Developer Support Libraries2013
- Replicated abstract data types: Building blocks for collaborative applicationsJournal of Parallel and Distributed Computing, 2011
- Multi-level Editing of Hierarchical DocumentsComputer Supported Cooperative Work (CSCW), 2007
- A Framework for Real-Time Collaborative Engineering in the Automotive Industries2006
- A survey of peer-to-peer content distribution technologiesACM Computing Surveys, 2004
- Achieving convergence, causality preservation, and intention preservation in real-time cooperative editing systemsACM Transactions on Computer-Human Interaction, 1998
- Concurrency control in groupware systemsACM SIGMOD Record, 1989