Design a Passport Appointment Booking Portal for Daily Slot Releases

Last updated: November 29, 2026

Quick Overview

Design a national appointment booking system where millions of applicants try to book a limited set of slots across hundreds of service centers when each day's slots are released at a fixed time, with no double booking, fair access, and protection against bots and agents hoarding slots.

TCS
System Design
Software Engineer
TCS
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design a national appointment booking system where millions of applicants try to book a limited set of slots across hundreds of service centers when each day's slots are released at a fixed time, with no double booking, fair access, and protection against bots and agents hoarding slots.

TCS built and runs large citizen-service programs such as Passport Seva, where demand spikes far beyond capacity at slot release time. A senior design round in this style checks inventory correctness under contention, admission control, and anti-abuse thinking rather than a generic CRUD design.

What the Interviewer Expects
  • Quantify the spike: concurrent users versus available slots
  • Separate browsing availability from the atomic reservation path
  • Guarantee no double booking with conditional writes or per-slot counters
  • Use a virtual waiting room or token admission to protect the core
  • Address bots, agents and identity-bound bookings
  • Plan for holds that expire and payment or document steps
Key Topics to Cover
Inventory contention
Waiting room
Idempotency
Rate limiting
Caching
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you make allocation fair instead of fastest-click-wins?
  • What happens if the reservation database fails over at 9:00:05?
  • How do you stop one agent booking hundreds of slots with different identities?
  • How would you load test this before a release day?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: search centers and dates, see availability, hold a slot, confirm against a verified application number, reschedule or cancel. Non-functional: at release, say 2 million users in the first m...

High-Level Design

CDN and WAF in front, then a waiting room that issues signed, time-boxed admission tokens at a rate the booking tier can sustain. Availability service serves per-center, per-day counts from Re...


Submit Your Answer
Markdown supported

Related Questions