Design Offline Editing and Sync for Notion Pages

Last updated: November 29, 2026

Quick Overview

Design how Notion's desktop and mobile clients let users open, edit and create pages while offline, then reconcile those edits with the server and other collaborators when connectivity returns.

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

0

0

0 solved


Design how Notion's desktop and mobile clients let users open, edit and create pages while offline, then reconcile those edits with the server and other collaborators when connectivity returns.

Notion's clients cache blocks locally and send edits as operations to a backend that stores blocks in sharded Postgres, so offline support is a real product and infrastructure problem for them. The interviewer is checking whether the candidate can choose what to keep on device, design a durable operation log, and merge concurrent edits to blocks, lists and database properties without losing user work.

What the Interviewer Expects
  • Decide which pages are available offline and bound device storage
  • Model edits as an ordered, durable, idempotent operation log on the client
  • Choose merge semantics per data type: text, child-order lists, scalar properties
  • Handle permission changes, deletions and moves that happened while offline
  • Explain catch-up on reconnect using per-page versions or a change feed
  • Discuss failure modes such as app kill mid-sync and very long offline periods
Key Topics to Cover
Offline-first
Operation log
CRDT
Conflict resolution
Client storage
Sync protocol
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
  • A user was offline for two weeks and edited a page that someone else deleted. What do they see?
  • How do you keep the client cache consistent when a database with 20,000 rows is marked offline?
  • How would you test convergence between clients that sync in different orders?
  • What changes if the server reshards workspaces while clients hold queued operations?
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: mark pages (and their subtrees) available offline, read and edit them offline, create new pages offline, and sync automatically on reconnect with no lost edits. Non-functional: edits feel ...

High-Level Design

Client: a local SQLite store holding block records (id, type, properties, parent, children, version) plus an outbox table of pending operations. The editor applies each operation optimistically to...


Submit Your Answer
Markdown supported

Related Questions