Problem Statement: Scheduling Is Contention Over Temporal Inventory
Frames appointment scheduling as a concurrency, time-math, and external-truth problem rather than a CRUD app.
Problem statement
Design an appointment scheduling system for enterprises and multi-user services. The platform must let organizers create meetings, let invitees find common free slots and confirm or decline, let customers self-book resources (rooms, providers, equipment), sync free/busy state with external calendar providers, convert across time zones, expand recurring series, send automated reminders, and handle cancellations, no-shows, and rescheduling.
This looks like a CRUD app until you examine the three properties that make it genuinely hard.
1. Time is inventory, and inventory contends
A meeting room from 10:00 to 11:00 is a unit of inventory that exactly one booking may consume. Unlike an e-commerce cart, temporal inventory cannot be oversold and reconciled later: two accepted bookings for the same room at the same time is not a degraded state, it is a product failure. The write path therefore needs atomic conflict detection — range exclusion constraints, compare-and-set holds, or single-writer serialization per resource — not optimistic UI plus hope.
2. External calendars own the truth for busy time
The system's own database does not know that an invitee just accepted a dentist appointment in Google Calendar. Busy truth lives in Google Workspace, Microsoft 365, and CalDAV servers. The platform must mirror that truth incrementally — OAuth connections, sync tokens, webhooks, polling fallback — and treat external busy blocks as first-class inputs to every availability computation. A booking confirmed against a stale mirror is a double-booking that the system, not the user, caused.
3. Time is the hardest data type in software
An appointment has a wall-clock meaning ("every Tuesday at 9:30") and an instant meaning (a UTC timestamp). Recurring events must be expanded in the organizer's IANA time zone across DST transitions, rendered in each participant's zone, and stored so that a zone rule change does not rewrite history. RFC 5545 (iCalendar), RFC 4791 (CalDAV), and the IANA Time Zone Database define the vocabulary; the architecture must decide what it stores, what it computes, and what it caches.
Public operating baseline
The category operates at planetary scale. Google reports more than 500 million monthly Google Calendar users, and Microsoft reports more than 400 million paid Microsoft 365 commercial seats whose calendars flow through Exchange Online and the Graph availability APIs. Calendly reported more than 10 million users at its 2021 Series B, and Fresha reports more than 120,000 businesses booking on its marketplace. These are company-reported public figures that establish the category; every uncited number in this answer is an explicit design assumption.
For capacity planning, this answer assumes a mature B2B scheduling platform: 30,000 organizations, 12 million monthly active users, 1.2 million appointments created per day, 5 million connected external calendars, and a 5x event peak around Monday mornings and quarter boundaries.
The four architectural planes
- Booking plane: appointment lifecycle, holds, participant responses, conflict-free writes, cancellation and reschedule workflows.
- Availability plane: busy-interval algebra, working hours, buffers, cross-participant intersection, ranked slot suggestions — a read-heavy projection layer.
- Sync plane: OAuth connections, external event mirrors, webhooks, incremental sync, reconciliation, and conflict policy.
- Engagement plane: reminders, notifications, no-show policy, waitlists, and customer-facing status.
A strong answer keeps the planes separate. The availability plane may degrade to slightly stale data; the booking plane may never degrade its atomicity. The engagement plane may retry for hours; the sync plane must never silently drop a change.
Key Highlights
- •An appointment slot is temporal inventory: exactly one booking may consume it, so conflict detection must be atomic, not advisory.
- •External calendar providers own busy truth; the platform mirrors it incrementally and treats mirrors as first-class availability inputs.
- •Every appointment carries both a wall-clock meaning and a UTC instant; recurrence expands in the organizer's IANA zone across DST.
- •The architecture has four planes: booking, availability, sync, and engagement.
- •Google reports 500M+ monthly Calendar users and Microsoft 400M+ paid M365 seats; our fleet numbers are explicit design assumptions.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate booking correctness from availability freshness: the former must be atomic, the latter may be eventually consistent."
- "Before choosing databases, let me define which plane owns each decision and which external system owns busy truth."