Design a Vaccination Appointment Platform
Design searchable appointment inventory with bounded holds, fair admission, and no overselling.
Problem statement
Design a vaccination appointment platform. For this exercise, assume residents search nearby centers and available time slots, create a short hold, confirm one appointment after an eligibility check, cancel, and read status. Centers publish dated capacity.
Support 20 million registered users, 100,000 appointment attempts per minute during a release, 400-millisecond p95 discovery reads, and no confirmed appointments beyond a slot's capacity. Holds expire after five minutes. Search may lag briefly, but confirmation must revalidate authoritative capacity.
Keep clinical records, payment, and dose administration outside scope.
What to build
- A resident can search centers and dated availability with freshness metadata.
- An eligible resident can create one bounded hold without overselling capacity.
- A resident can idempotently confirm or cancel and recover an uncertain request outcome.
- A center can publish capacity changes that become discoverable without bypassing booking authority.
At scale
- For this exercise, assume 20 million registered residents and 100,000 appointment attempts per minute during a slot release.
- For this exercise, target 400 milliseconds p95 for discovery while allowing short projection lag; confirmation always rechecks authoritative capacity.
- For this exercise, holds expire after five minutes and confirmed appointments must never exceed a slot's published capacity.