Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Calendar Search and Sync Platform

Design calendar scheduling with recurring events, searchable history, and reliable incremental synchronization across devices.

Problem statement

For this exercise, assume users create personal and shared calendar events, including recurring series with per-instance exceptions. Design the backend that stores and searches events and incrementally synchronizes changes to several intermittently connected devices.

Edits and cancellations must preserve recurrence meaning across time zones, sync retries must be idempotent, and search may be slightly stale but must respect access revocation. Exclude meeting-room optimization, email delivery, and ranking beyond basic text and time filters.

What to build

  1. Create, update, and cancel standalone events or recurring series, including one-instance exceptions.
  2. Read a bounded calendar window with correct recurrence expansion and access control.
  3. Search authorized event text and time ranges with explicit indexing freshness.
  4. Incrementally synchronize changes, deletions, and conflicts across intermittently connected devices.

At scale

  • Serve 10 million daily active users, about 5,000 event writes per second, and 50,000 calendar reads or searches per second at peak.
  • Keep p95 event writes below 300 ms and p95 calendar reads and searches below 500 ms.
  • Deliver committed changes to connected devices within five seconds and support clients that reconnect after 90 days.
  • Retain five years of events; use named time zones and preserve the intended local wall-clock behavior of each recurring series.