Bugpit

Lessons › Real apps

Flipkart: the sale opens

When Big Billion Days opened in 2026, Flipkart reported 6.3 million people on it at once. You're running one hundredth of that: 63,000 people and 63,000 req/s, all in the same minute. No amount of servers you can afford will fit them all.

Play this level

Part of Bugpit Pro. It runs in your browser: build the design, press Run, and watch what breaks.

The lesson

A sale isn't like a normal busy day. The crowd arrives in one moment, for a deal that starts at one moment, so you can't grow slowly into it.

Rate limiting would keep your servers up, but tens of thousands of people would get an error during the biggest sale of the year. A waiting room gives them a place in line.

Set it to what your servers can really take, and put the people you let in on fast paths: a CDN for images, a cache for product pages, and a queue for orders.

Reads are nearly all the same few hot deals, so a high cache hit rate matters more than usual. Most of this crowd is looking, not buying.

What you have to achieve

63,000 requests a second at the busiest hour, 2% of them writes and 40% static files.

What you learn

Look at Failed requests: none, with a crowd far bigger than your servers can take. They waited instead of failing. The speed shown is for people let in, not time in line. Choosing how your system says no is a design decision.

The real numbers behind it

Check yourself

Why a waiting room instead of a rate limit?

Show the answer

People get a place in line instead of an error. A rate limit keeps servers up by refusing people. A waiting room makes them wait instead of failing.

Most of a sale crowd is browsing the same few deals. What matters more than usual?

Show the answer

A high cache hit rate. Reads are nearly all the same hot deals, so the cache answers most of them.

Try it yourself

More in Real apps

← Amazon: Prime Day Swiggy: New Year's Eve →