arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.02618cs.DCcs.DS
收藏

Collabs:一个灵活且高性能的CRDT协作框架

Collabs: A Flexible and Performant CRDT Collaboration Framework

Matthew Weidner, Huairui Qi, Maxime Kjaer, Ria Pradeep, Benito Geordie, Yicheng Zhang, Gregory Schare, Xuan Tang, Sicheng Xing, Heather Miller

AI总结:

Collabs是一个基于CRDT的协作框架,允许程序员灵活实现和组合CRDTs,支持应用特定优化,同时保持强最终一致性,并在富文本编辑器中支持超过100个同时用户,性能优于现有框架。

摘要:

协作框架是一种分布式系统,作为协作应用的数据层。无冲突复制数据类型(CRDTs)是实现协作框架的一种有前景的理论技术。然而,现有框架缺乏灵活性:它们往往是研究论文的一次性实现,或仅允许受限的CRDT语义,并且不允许应用特定的优化。迄今为止,还没有一个通用框架能让程序员混合、匹配和修改CRDTs。我们通过Collabs解决了这一问题,Collabs是一个基于CRDT的协作框架,允许程序员实现自己的CRDTs,无论是从头开始还是通过组合现有构建块。Collabs同时优先考虑语义灵活性和性能灵活性:它允许任意的应用特定CRDT行为和优化,同时仍提供强最终一致性。我们通过示例应用和CRDT实现展示了Collabs的能力和编程模型。然后,我们展示了使用Collabs内置CRDTs的协作富文本编辑器可以扩展到超过100个同时用户,这与现有CRDT框架和Google Docs不同。Collabs还具有比流行的操作转换框架更低的端到端延迟和服务器CPU使用率,且CRDT元数据开销可接受。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑