How it works · 1 of 38 Core

What happens to a web request when you tap Buy in an app?

What happens when you tap "Buy"

Life of a request: One tap sends a small message on a round trip through a chain of ordinary computers, each with one job: find the shop, serve what's already copied nearby, pick a free server, run the order, save it.

Loading the animation…

Say it like this One tap travels a chain: a lookup finds the shop, nearby copies send the pictures, a front desk picks a free server, and the database saves the order. Some links have spares; some only if you build them.

Under the hood — for builders
The five stations, by their real names
Every web request meets these jobs. The names you'll see on cloud bills and in outage reports:
Why a second visit is faster
Your phone keeps the DNS answer, and the CDN keeps the photos, for as long as the shop's owner allows (the "time to live", TTL). So a repeat visit often skips the phone book and never fetches photos from far away. The order itself is new every time, so it always makes the full trip.
A real outage, hour by hour
19–20 October 2025, Amazon's N. Virginia region (us-east-1). A software race left the DNS record for DynamoDB, Amazon's database service, empty: programs could not find it.
Measure it
Time to first byte (how long until the answer starts) and error rate, per station. A robot that places a test order every minute, from several cities, finds a broken link before customers do.
Watch out
Single points of failure: the phone book, the front desk and the database each need a spare in another building (see Regions, next), and a spare nobody has tested may not work.
Sources
AWS post-event summary, aws.amazon.com/message/101925 · DNS: RFC 1034 and 1035 (1987) · 203.0.113.7 is from a range kept for examples only (RFC 5737).

What happens in the the life of a web request animation, step by step?

  1. You tap Buy. First stop, DNS: a lookup turns the shop's name into the number of the computer to send the order to.
  2. Second, CDN: copies kept near you send the pictures straight back. A new order can't be a copy, so it travels on.
  3. Third, load balancer: a front desk hands your order to whichever server is free.
  4. Last, server and database: a program checks the stock and writes the order into the database, the shop's long-term memory. Then the answer flies home.
  5. Your turn: tap any station to switch it off, and a new order sets off. Which can the shop live without?
  6. Real life: one blank DNS entry inside Amazon's cloud broke apps worldwide for most of a day. Where do all these machines actually sit? Next: regions.

What everyday example explains the life of a web request?

Posting an order to a big shop. The post office looks up the street address (DNS), the local branch hands over the catalogue it keeps a copy of (CDN), reception passes your letter to whichever clerk is free (load balancer), and the clerk checks and writes in the ledger (server and database) before replying.

Why should a team care about the life of a web request?

Every slow page, outage and cloud bill traces back to one of these stations, so knowing them tells you where to look first and which part needs a spare.