Design Real-Time Co-Authoring for Word Documents

Last updated: November 29, 2026

Quick Overview

Design the service that lets many people edit the same Word document simultaneously in the browser and desktop apps, seeing each other's changes and cursors in near real time, with offline edits merged later.

Microsoft
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the service that lets many people edit the same Word document simultaneously in the browser and desktop apps, seeing each other's changes and cursors in near real time, with offline edits merged later.

Co-authoring in Word, Excel, PowerPoint, and Loop is core Microsoft 365 functionality, backed by Fluid Framework style ordering services and OneDrive/SharePoint storage. Interviewers probe whether you understand how concurrent edits converge (operational transformation versus CRDTs versus a total-order service), and how you keep a durable, versioned file while serving low-latency deltas.

What the Interviewer Expects
  • Explains a convergence model and why naive last-writer-wins fails for text
  • Separates the real-time ops path from durable file storage
  • Uses a sequencing service per document to assign total order
  • Snapshots and summarizes the op log so new joiners load quickly
  • Handles offline edits, reconnect, and conflict cases
  • Covers presence (cursors) as ephemeral data separate from content
Key Topics to Cover
Operational transformation
CRDTs
Total-order broadcast
Snapshots and op logs
Presence
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • Why might a central sequencer be preferable to a pure peer-to-peer CRDT for Office?
  • How do you handle a 200-page document with 50 editors and one slow client?
  • How do comments, tracked changes, and permissions interact with the op stream?
  • How do you guarantee no edit is lost if the sequencer crashes mid-session?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: concurrent edits by up to tens or hundreds of users per document, live cursors and selections, offline editing with later merge, version history, and permissions. Non-functional: change vi...

High-Level Design

Clients connect over WebSocket to a Collaboration Session for the document, placed by consistent hashing on document id so all editors of a doc reach the same session host. Each client sends ops (...


Submit Your Answer
Markdown supported