Queue
Holds jobs so slow work (emails, image processing) happens in the background. The user gets an answer straight away.
See it in action
These lessons put queue to work. Read one, then play it and watch what happens without it.
- Scale out: You hit the news. 6,000 req/s arrive and one app server handles about 2,000. Press Run traffic to watch it fall over.
- CDN, queues and no single point of failure: 30,000 req/s. Half are images and scripts, and writes trigger slow work like emails. Nothing may go down if one…
- Say no to a flood: Tickets go on sale: 9,000 req/s hit your 2 app servers, and the budget can't buy a third. You can't answer everyone,…
- One event, many readers: 10,000 req/s and 25% are new orders. Each order must be saved, emailed to the customer and added to analytics. Three…
- Take the money: A sale brings 4,000 req/s, and 4% are people paying: 160 charges a second at the peak. Your app calls the payment…
- Go worldwide: Half your users are now outside the US: 30% in Europe and 20% in Asia. A read from Mumbai to Virginia takes about 190…
- Serve some, not none: A flood: 16,000 req/s arrive, and six servers can answer 12,000. There's no time to add machines. Right now every…
- 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…