It's 9:59:58. The form is filled, the finger is on Book Now. At 10:00:00 you click, and you get a spinner, then an error. Anyone who has tried AC Tatkal knows that minute. It also makes a real interview question: "Everyone presses Book at the same second. How do you keep the server alive?"
Why that minute is different
For most of the day, traffic is spread out. At 10:00:00 it arrives at once, a flash crowd. IRCTC says its system can handle "more than 30,000 ticket bookings per minute", and it set a record of 30,155 at 10:01 on 12 March 2025. But demand in that minute is far bigger than the number of seats. And each error makes people refresh, and every refresh is a brand-new request, so the spike feeds itself.
A lot of that traffic isn't even human. In June 2025 the Railway Ministry said up to half of the login attempts in Tatkal's first five minutes came from bots. That's why, since July 2025, online Tatkal needs Aadhaar authentication and an OTP, and agents can't book in the first 30 minutes.
Why "a bigger server" isn't enough
More capacity does help, and IRCTC has raised it over the years. But it doesn't create seats, and every request still ends at the same seat inventory for the same trains. More servers can simply mean more people learn "waitlist" faster, while bots scale with you.
What a good design does
- A waiting room. Like a sale gate where the guard lets people in in batches: everyone gets a place in line, and only as many people enter as the system can serve. The wait page is cheap to serve, so the expensive booking path stays healthy.
- Rate limits and bot filtering. Each user gets a fixed rate of requests, and bots are stopped before they reach the queue.
- Atomic seat updates. "Is a seat left?" and "book it" happen in one database step, such as
UPDATE seats SET left = left - 1 WHERE left > 0, so the last berth can't go to two people. - Safe retries. Bookings and payments are idempotent, seats are held briefly during payment, and clients retry with backoff instead of instantly.
IRCTC doesn't publicly describe a waiting room, so treat these as the standard way to design for a flash-crowd sale, not as IRCTC's internals.
The answer to give
Turn the spike into a line: waiting room, rate limit, bot filter, and sell each seat atomically.
Sources: IRCTC, internet ticketing; ETV Bharat, citing the Railway Ministry (June 2025); Railway Board circular CC 08/2025; Cloudflare Waiting Room; PostgreSQL explicit locking.