Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

Collaborative Editing Design

Design a real-time collaborative editor in which many people edit one document at once, concurrent and offline edits merge so every copy converges, and history and access stay auditable.

Advanced1 roadmap

3 objectives 5 steps about 115 min

Check what you know

The lessons are coming later. The knowledge check is ready now.

Take the knowledge check

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Explain why locking a document or keeping the last writer's whole copy blocks or loses concurrent edits, and estimate operation rate, per-document fan-out and history storage for a collaborative editor.
  • Compare operational transformation, where a server orders and transforms concurrent operations, with sequence CRDTs (as in Yjs or Automerge), and choose one for stated requirements on offline editing, server topology and metadata overhead.
  • Design the session layer: per-document routing to a collaboration server, presence and cursors as ephemeral state, reconnect with catch-up from a known version, snapshots with a compacted operation log, and access that stops within a stated bound after a share is revoked.

Lesson plan

5 steps, about 115 min · 0 of 4 lessons available so far

  1. Scoping a shared editor: sessions, operation rates and history Worked example · 20 min · coming later
  2. Operational transformation: a server that orders and transforms edits Concept · 25 min · coming later
  3. Lab: merging offline edits with a CRDT library and checking convergence Lab · 30 min · coming later
  4. Sessions, presence, reconnect and history at scale Concept · 25 min · coming later
  5. Collaborative editing design check Knowledge check · 6 questions

Practise it

Run three replicas of one document with a CRDT library (Yjs or Automerge), apply random concurrent and offline edits through a channel that delays, reorders and duplicates messages, and check that every replica ends with the same text and measure the p95 time for a remote edit to appear; then write a design doc for 1M daily editors covering per-document routing, presence, reconnect catch-up, snapshot and log compaction, and what a user whose share was revoked can still see and for how long.

References

Hard prerequisites

Unlocks

Nothing depends on this skill yet.

On these roadmaps

Progress and evidence for this skill are shared across all of them.