The Question
Design
Collaborative Real-time Document Editor
Design a system similar to Google Docs that enables multiple users to concurrently edit the same document in real-time. The system must ensure all participants eventually reach a consistent state, handle high-frequency updates with low latency, and manage user presence. Focus on the conflict resolution strategy, state management for long-lived connections, and the data persistence model for millions of documents.
WebSockets
Operational Transformation
Redis
PostgreSQL
DynamoDB
February 26, 2026