Design a Collaborative Whiteboard (Miro-like)

Hard45 min
1 / 30
System design answer

Design a Collaborative Whiteboard (Miro-like)

Hard45 min30 sections
understanding•9 min read

Problem Statement: A Convergent Multiplayer Canvas

Frames the whiteboard as a convergence problem first and a rendering problem second.

Problem statement

Design a collaborative whiteboard where distributed teams add shapes, sticky notes, connectors, and freehand strokes, drag and resize objects, see each other's live cursors, comment, and keep working through refreshes and brief network loss. Every participant must converge on the same board state, quickly and without losing work.

The defining constraint is concurrency. Two designers move the same sticky note at the same instant. One deletes a shape the other is recoloring. A third is offline on a train and reconnects five minutes later. A whiteboard backend can retry a notification; it cannot retry a lost merge. So the design splits board correctness (every committed edit eventually visible to everyone, in a consistent order) from ephemeral awareness (cursors and selections that may be dropped under pressure).

Why this is distinctive

A request/response CRUD app treats the database as the only source of truth and the client as a dumb view. A multiplayer canvas inverts that: the client holds a live replica, applies remote operations at network speed, and the backend exists to order operations, persist them, and fan them out. Latency is the product. Figma has publicly described running its editor as a C++ engine compiled to WebAssembly with a server that assigns a global order to operations per document; that framing, not a REST API, is the reference point for this answer.

The four planes

  1. Sync plane: operation ordering, conflict resolution (OT or CRDT), convergence.
  2. Awareness plane: presence, cursors, selections, typing indicators - last-writer-wins and disposable.
  3. Persistence plane: op log, snapshots, compaction, history and restore.
  4. Product plane: boards, comments, sharing, permissions, export, embed, moderation.

A strong answer keeps these planes separate. Presence load must never threaten sync durability, and persistence compaction must never reorder uncommitted operations.

Key Highlights

  • •Convergence is the invariant: all replicas reach the same state, not merely a fast render.
  • •Split board correctness (durable, ordered) from ephemeral awareness (droppable, LWW).
  • •The client holds a live replica; the server orders, persists, and fans out operations.
  • •Four planes: sync, awareness, persistence, product - each with its own consistency model.
  • •Real-time drawing board with shapes, sticky notes, and multi-cursor concurrency is the core scope.
Lead With Convergence
State in the first two minutes that the hard problem is making concurrent edits converge, not drawing shapes. That instantly separates a multiplayer architecture from a CRUD app.
Do Not Draw a CRUD Toy
A design where every mouse drag is a REST POST to a database fails at real-time latency and will not survive a serious interview.

Section Rescue Kit

Buzzwords to use:

ConvergenceLocal-First

Safe statements:

  • "I will separate durable board correctness from disposable cursor awareness before choosing any technology."
  • "Let me define which operations need total order and which can be last-writer-wins."
Design a Collaborative Whiteboard (Miro-like) - System Design | WinJob | WinJob