Collabs: A Flexible and Performant CRDT Collaboration Framework

Matthew Weidner, Huairui Qi, Maxime Kjaer, Ria Pradeep, Benito Geordie +5 more
12/5/2022
cs.DCcs.DS

Official code: composablesys/collabs-e2e-benchmark (1 star, TypeScript, Apache-2.0, last commit 2023-03-03).

Abstract

A collaboration framework is a distributed system that serves as the data layer for a collaborative app. Conflict-free Replicated Data Types (CRDTs) are a promising theoretical technique for implementing collaboration frameworks.

Show full abstract

However, existing frameworks are inflexible: they are often one-off implementations of research papers or only permit a restricted set of CRDT semantics, and they do not allow app-specific optimizations. Until now, there was no general framework that lets programmers mix, match, and modify CRDTs. We solve this with Collabs, a CRDT-based collaboration framework that lets programmers implement their own CRDTs, either from-scratch or by composing existing building blocks. Collabs prioritizes both semantic flexibility and performance flexibility: it allows arbitrary app-specific CRDT behaviors and optimizations, while still providing strong eventual consistency. We demonstrate Collabs's capabilities and programming model with example apps and CRDT implementations. We then show that a collaborative rich-text editor using Collabs's built-in CRDTs can scale to over 100 simultaneous users, unlike existing CRDT frameworks and Google Docs. Collabs also has lower end-to-end latency and server CPU usage than a popular Operational Transformation framework, with acceptable CRDT metadata overhead.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

OWebSync Benchmarks recreated for the Collabs paper

10TypeScript, JavaScriptApr 13, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{weidner2022collabs,
  title  = {Collabs: A Flexible and Performant CRDT Collaboration Framework},
  author = {Matthew Weidner and Huairui Qi and Maxime Kjaer and Ria Pradeep and Benito Geordie and Yicheng Zhang and Gregory Schare and Xuan Tang and Sicheng Xing and Heather Miller},
  year   = {2022},
  eprint = {2212.02618},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.02618}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.02618.svg)](https://codeofpaper.com/paper/2212.02618)

Discussion