The Art of the Fugue: Minimizing Interleaving in Collaborative Text Editing
Authors:
- 26 September 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Parallel and Distributed Systems
- Vol. 36 (11) , 2425-2437
Abstract
Most existing algorithms for replicated lists, which are widely used in collaborative text editors, suffer from a problem: when two users concurrently insert text at the same position in the document, the merged outcome may interleave the inserted text passages, resulting in corrupted and potentially unreadable text. The problem has gone unnoticed for decades, and it affects both CRDTs and Operational Transformation. This paper defines maximal non-interleaving, our new correctness property for replicated lists. We introduce two related CRDT algorithms, Fugue and FugueMax, and prove that FugueMax satisfies maximal non-interleaving. We also implement our algorithms and demonstrate that Fugue offers performance comparable to state-of-the-art CRDT libraries for text editing.Keywords
All Related Versions
Funding Information
- NDSEG Fellowship
- Office of Naval Research
- Volkswagen Foundation and Crowdfunding Supporters including SoftwareMill
This publication has 25 references indexed in Scilit:
- A Conflict-Free Replicated JSON DatatypeIEEE Transactions on Parallel and Distributed Systems, 2017
- Replicated abstract data types: Building blocks for collaborative applicationsJournal of Parallel and Distributed Computing, 2011
- Conflict-Free Replicated Data Types2011
- Introduction to Reliable and Secure Distributed Programming2011
- A Commutative Replicated Data Type for Cooperative Editing2009
- Logoot: A Scalable Optimistic Replication Algorithm for Collaborative Editing on P2P Networks2009
- Data consistency for P2P collaborative editing2006
- Tombstone Transformation Functions for Ensuring Consistency in Collaborative Editing Systems2006
- Proving Correctness of Transformation Functions in Real-Time Groupware2003
- Lightweight causal and atomic group multicastACM Transactions on Computer Systems, 1991