Design Real-Time Canvas Sync for Microsoft Whiteboard

Last updated: November 29, 2026

Quick Overview

Design the backend and client sync model for a shared infinite whiteboard where dozens of people draw ink strokes, move sticky notes and see each other's cursors live, including when some go offline.

Microsoft
System Design
Frontend Engineer
Microsoft
November 29, 2026
Frontend Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the backend and client sync model for a shared infinite whiteboard where dozens of people draw ink strokes, move sticky notes and see each other's cursors live, including when some go offline.

Microsoft Whiteboard and Loop components need concurrent editing on a canvas, which differs from text co-authoring: objects are independent shapes rather than a character sequence. The interviewer checks per-object conflict resolution, operation batching, presence channels and loading large boards.

What the Interviewer Expects
  • Models the board as a set of objects with stable ids rather than one document blob
  • Uses per-object last-writer-wins registers or a CRDT map for properties
  • Sends operations through a session relay with server-assigned ordering
  • Separates ephemeral cursors from durable operations
  • Snapshots plus operation log for fast load
  • Supports offline edits that merge on reconnect
Key Topics to Cover
Operation log
CRDT map
Last-writer-wins
Presence channel
Snapshots
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
  • Two people drag the same sticky note at the same time. What does everyone end up seeing?
  • A board has 200,000 strokes. How does a new participant load it quickly?
  • How do you implement undo when others edited in between?
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

Up to about 100 concurrent editors per board, many more viewers. Edits appear for others within 200 ms. Objects: ink strokes, shapes, sticky notes, images with properties (position, color, text). Offl...

High-Level Design

Clients connect over WebSocket to a session relay that owns a board while it is active (chosen by consistent hashing on boardId). Clients send operations `{opId, clientId, objectId, field, value, ...


Submit Your Answer
Markdown supported