Real-Time Collaboration Technologies — Vocabulary
5 exercises — 5 exercises practising CRDT, operational transforms, SFU vs. MCU architecture, presence indicators, and real-time collaboration vocabulary.
0 / 5 completed
1 / 5
A team is choosing between CRDT and Operational Transform (OT) for their collaborative document editor. Which description correctly compares the two approaches?
The core trade-off: OT is server-centric (simpler algorithm but requires always-on server coordination); CRDT is distributed (complex data structure but no server needed for consistency).
OT (used in Google Wave, ShareDB): when two clients make concurrent edits, a server transforms operation B to account for operation A having already been applied, then sends the transformed B to all clients. This requires the server to see all operations and handle the transformation logic. Works well for a single-master architecture but is hard to implement correctly for multi-master. CRDT (used in Yjs, Automerge): each operation is a self-describing structure that can be merged with any other operation in any order and always produces the same result (commutativity and idempotency). No server needed for conflict resolution. Well-suited for P2P (WebRTC data channels), offline-first apps, and multi-region replication.
Key vocabulary:
• CRDT (Conflict-free Replicated Data Type) — data structure where concurrent operations always merge correctly without coordination
• OT (Operational Transform) — algorithm transforming operations to account for concurrent edits; requires server
• commutativity (CRDT) — the property that CRDT operations produce the same result regardless of application order
OT (used in Google Wave, ShareDB): when two clients make concurrent edits, a server transforms operation B to account for operation A having already been applied, then sends the transformed B to all clients. This requires the server to see all operations and handle the transformation logic. Works well for a single-master architecture but is hard to implement correctly for multi-master. CRDT (used in Yjs, Automerge): each operation is a self-describing structure that can be merged with any other operation in any order and always produces the same result (commutativity and idempotency). No server needed for conflict resolution. Well-suited for P2P (WebRTC data channels), offline-first apps, and multi-region replication.
Key vocabulary:
• CRDT (Conflict-free Replicated Data Type) — data structure where concurrent operations always merge correctly without coordination
• OT (Operational Transform) — algorithm transforming operations to account for concurrent edits; requires server
• commutativity (CRDT) — the property that CRDT operations produce the same result regardless of application order