Bugpit

Lessons › Real apps

Amazon: Prime Day

On Prime Day 2025, DynamoDB peaked at 151 million requests a second. You're running one ten-thousandth of that: 15,100 req/s. Carts, searches and orders all hit one SQL database, and each customer waits while their card is charged.

Play this level

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

The lesson

Amazon's Dynamo paper began with the shopping cart: it must always accept your item, even when machines fail. A cart is fetched by one key and never joined, which suits NoSQL.

Search is a different job, so it gets its own index. A database reading its whole product table for each search won't survive the day.

Checkout is a third job. Take the order, put it in a queue, and answer. Workers charge cards and send email afterwards, at a rate the payment provider allows.

A store still works without recommendations, so that service needs a circuit breaker. Three kinds of work, and each one goes where it's cheapest to do.

What you have to achieve

15,100 requests a second at the busiest hour, 1% of them writes and 20% static files.

What you learn

Every shopping trip here touched four different stores of data, each picked for its job. AWS also ran over 6,800 failure tests before Prime Day 2025, because at this size things break all the time. Try crashing yours.

The real numbers behind it

Check yourself

Why does a shopping cart suit NoSQL?

Show the answer

It's fetched by one key and never joined. Amazon's Dynamo paper began with the cart: simple, always writable, keyed by customer.

Why charge cards from a queue instead of while the customer waits?

Show the answer

The provider has a rate limit, and nobody should wait for it. Take the order and answer. Workers charge at a rate the provider allows.

Try it yourself

More in Real apps

← Netflix: 65 million at once Flipkart: the sale opens →