Advanced Walkthrough: A Collaborative Editor (Google Docs)
System Design · Advanced Walkthroughs · Master · 32 min
Design real-time collaborative editing: WebSocket sessions, one ordering server per document, operational transformation vs CRDTs, presence, snapshots plus an op log, and offline edits, then code the server's transform loop.
This lesson is part of TuringPath Pro. See plans.
What you will learn
- 1. Requirements and numbers
- 2. API and data model
- 3. High-level design
- 4. Deep dive: operational transformation (OT)
- 5. Deep dive: CRDTs, presence and offline edits
- 6. Trade-offs and failure modes
More in Advanced Walkthroughs
- Advanced Walkthrough: A Dynamo-style Key-Value Store
- Advanced Walkthrough: A Payment System
- Advanced Walkthrough: A Web Crawler
- Advanced Walkthrough: Ticket Booking (Ticketmaster)
Previous: Advanced Walkthrough: A Payment System · Next: Advanced Walkthrough: A Web Crawler