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 levelPart 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.
- No broken or illegal connections
- Use a CDN
- Use a NoSQL DB
- Use a Search Index
- Use a Payment API
- No component is overloaded
- Workers clear the queue within the day
- If every Internal Service machine dies, under 0.1% of requests fail
- Fewer than 0.1% of requests fail
- p99 response time under 250 ms
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
- DynamoDB peaked at 151 million requests a second on Prime Day 2025 (Published: AWS: Prime Day 2025 metrics)
- SQS peaked at 166 million messages a second (Published: AWS: Prime Day 2025 metrics)
- ElastiCache took over 1.4 trillion requests in one minute (Published: AWS: Prime Day 2025 metrics)
- CloudFront served over 3 trillion requests that week (Published: AWS: Prime Day 2025 metrics)
- AWS ran over 6,800 failure tests beforehand (Published: AWS: Prime Day 2025 metrics)
- The mix here: 20% files, 2% searches, 0.5% orders. Amazon doesn't publish this (Estimate)
- Payment limits and fees here are Stripe's. Amazon's own aren't public (Estimate)
Check yourself
Why does a shopping cart suit NoSQL?
- Carts are huge
- Carts need text search
- It's fetched by one key and never joined
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?
- The provider has a rate limit, and nobody should wait for it
- It's cheaper per charge
- Cards need a day to clear
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.