Design a Google-Docs-style editor where multiple users edit the same document with low latency. Operational transforms or CRDTs resolve conflicts; presence and cursors improve UX.
Functional requirements
- Real-time collaborative editing with conflict resolution
- Presence (who is online) and live cursors
- Persist document history and snapshots
- Access control per document and share links
Non-functional requirements
- Low latency for keystroke merges (hundreds of ms)
- Ordering and convergence under unreliable networks
- Horizontal scale for connection fan-out