Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Calendar Event Collaboration System

Design event scheduling, attendee responses, permission-checked views of other people's calendars, and asynchronous notifications to attendees and organizers.

Problem statement

For this exercise, assume authenticated users create, update, cancel, and view calendar events and invite attendees. An attendee can accept, decline, or tentatively accept (maybe) an invitation and can change that answer later; every new or changed answer notifies the organizer.

A user can also open another person's calendar, but only at the access level that calendar's owner granted: no access, free/busy only (busy time blocks without titles or other details), or full details.

An event its organizer marks private shows only as busy to anyone who is not its organizer or an attendee, even with full-details access, and a revoked or lowered grant applies to the viewer's next reads.

Event state, attendee responses, and sharing grants must remain authoritative even when notifications are delayed or duplicated.

The source scenario calls for 10 million daily active users and 10,000 aggregate requests per second; use those values as the workload boundary while allowing reads, writes, and notification delivery to scale independently, and plan for calendar history that keeps growing for five years.

The design should emphasize asynchronous flows and clear API boundaries. Viewing one shared calendar at the free/busy level is in scope. Searching several people's calendars for a common free slot, room booking, and video conferencing are outside scope. Recurring events are included only to exercise time-zone behavior.

For this exercise, preserve an event's intended local-time semantics and IANA time-zone identity, render consistently for attendees in other zones, and define behavior across daylight-saving gaps and overlaps without changing an already accepted event silently.

What to build

  1. An organizer can create, update, reschedule, or cancel an event and receive one durable outcome across retries.
  2. An invited attendee can accept, decline, or tentatively accept, and change that answer later, recording one current response against the event version they observed.
  3. A user can page through events and response state on their own calendar for a bounded time range.
  4. A user can read another person's calendar for a time range only at the level that person granted, free/busy or full details, with private events shown only as busy and revoked grants enforced on the next read.
  5. Accepted event changes, including reschedules and cancellations, asynchronously produce deduplicated notifications for the affected attendees.
  6. When an invitee records or changes a response, the organizer asynchronously receives one deduplicated notification of the new answer.
  7. Organizers and attendees see event times consistently across IANA time zones and daylight-saving transitions.

At scale

  • Source fact: support 10 million daily active users and 10,000 aggregate requests per second.
  • Practice assumption: model the 10,000 requests per second as a read-heavy mix with event and response mutations partitioned by event identity and calendar reads partitioned by user identity.
  • Practice assumption: target 300 milliseconds p95 for authoritative mutations and calendar reads in a healthy region; notifications to attendees and organizers may lag accepted state by up to one minute and may be delivered at least once.
  • Practice assumption: retain active and historical events for five years and survive one availability-zone failure after acknowledging a mutation.
  • Practice assumption: each daily active user creates or is invited to about 5 events a day, so attendee and calendar rows grow by tens of millions a day for the whole retention window.
  • Practice assumption: one viewer may open up to 20 other people's calendars side by side for one week, and a revoked or lowered share must take effect for new reads within 5 seconds.
  • For this exercise, time-zone rules may change after an event is created; preserve the organizer's intended local time, zone ID, and the rule version or resolved instant used for each occurrence.