Problem Statement: A Calendar Is a Time Engine, Not a CRUD App
Frames the product as a time-correctness, fan-out, and sync problem rather than a simple event store.
Problem statement
Design a web-based calendar platform that supports multiple personal and shared calendars per user, events with time zones and recurrence rules, invitations with RSVP, reminders and push notifications, custom color themes, and ICS import/export plus external calendar sync. The product must serve individual users, teams sharing calendars, and enterprises with resource booking, while surviving offline clients, concurrent editors, and hostile time semantics.
The trap in this question is treating it as CRUD: create row, read row, update row, delete row. A calendar is actually five hard systems wearing a simple UI. First, it is a time engine: every event carries a wall-clock meaning in a time zone that governments mutate twice a year, and recurrence rules expand a single row into potentially infinite instances. Second, it is a fan-out machine: one invite from an organizer mutates N attendee calendars, generates N notification jobs, and must reach each attendee's device exactly once. Third, it is a synchronization service: phones, desktops, and web clients hold partial replicas, go offline, and return with conflicting local edits. Fourth, it is a concurrency control problem: shared events and meeting rooms attract simultaneous writers. Fifth, it is a compliance surface: calendar data is among the most sensitive PII an enterprise stores, because it reveals who meets whom, when, and where.
Why the problem is distinctive
A task manager can retry a write. A calendar cannot misplace an hour. The 2007 United States DST change, driven by the Energy Policy Act of 2005, forced every major vendor to ship time-zone patches and left misconfigured systems shifting meetings by an hour; that historical episode is the standard warning that time zone databases are live configuration, not static data. Recurrence is the second killer: RFC 5545 RRULE expressions such as the last weekday of every month are trivial to store and brutal to expand, because a series has no final instance until UNTIL or COUNT ends it, and query-time expansion must stay bounded. Invites are the third: an attendee list is a multi-writer aggregate where twenty people answer concurrently, and a room resource must never be double-booked even for a moment.
Public operating context versus design assumptions
Public evidence shows the category operates at enormous scale. Google announced Workspace passed three billion users in 2023, and Calendar is one of its core apps. Microsoft reported Microsoft 365 commercial paid seats above 400 million in fiscal 2024 earnings commentary, and Outlook calendar is the enterprise default for meeting infrastructure. Calendly publicly reports more than 20 million users on its scheduling layer. These figures are context, not our targets.
For capacity planning, this answer assumes a mature product with 250 million registered users, 60 million DAU, 800 million calendars, 20 billion stored event masters, 35 million event writes per day, and 120 million reminder deliveries per day. Every uncited number in this answer is an explicit design assumption, budget, or target.
The four architectural planes
- Time plane: wall-clock to instant conversion, DST rules, recurrence expansion, all-day and floating semantics.
- State plane: event masters, overrides, calendar metadata, ACLs, and sync change logs under strong per-aggregate consistency.
- Fan-out plane: invite delivery, RSVP aggregation, reminder scheduling, notification dispatch, and free/busy projection.
- Sync plane: delta tokens, offline client intents, conflict resolution, tombstones, and external ICS/CalDAV interop.
A strong interview answer keeps these planes separate. Fan-out may degrade and become eventually consistent, the sync plane may lag, but the time plane must never be wrong and the state plane must never lose a write or double-book a resource.
Key Highlights
- •A calendar is five systems: time engine, fan-out machine, sync service, concurrency controller, and compliance surface.
- •The 2007 US DST change is the canonical lesson that tzdata is live configuration, not static data.
- •Recurrence stores one row but expands to unbounded instances; expansion must be budgeted and bounded.
- •Public context: Google Workspace above three billion users in 2023, Microsoft 365 above 400 million commercial seats, Calendly above 20 million users.
- •The four planes are time, state, fan-out, and sync; only time and state require hard correctness.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate time correctness from fan-out scale, because they fail in very different ways."
- "Before drawing services, let me name what must be exactly right versus what may be eventually consistent."