Learn

VISUAL GUIDE · FOUNDATIONS & ESTIMATION

Follow a web request

Step 9 of 10: Put an edge near the user

STEP 9 / 10ORIGINAL SKETCH
shop.example?SQL queryshort hopwarm connectionBrowserMumbaiDNS resolvercaches answersAuthoritativeDNSNearby edgealso MumbaiApp serverVirginiaDatabase!
A browser looks up a name through a DNS resolver, opens a connection to a distant app server that queries a database, and later goes through a nearby edge that keeps a warm connection to the server.

Where the time goesIllustrative · see assumptions

  • DNS lookup80 ms
  • TCP + TLS to edge20 ms
  • Setup saved vs. Virginia380 ms
  • Browser to edge and back10 ms
  • Edge to server and back200 ms
  • App code30 ms
  • Slow query400 ms

Total ≈ 1120 ms

9 / 10
  1. Slow page
  2. DNS lookup
  3. TCP setup
  4. TLS setup
  5. Request sent
  6. Server work
  7. Response
  8. Reuse
  9. Nearby edge
  10. Fix the query

STEP 9 OF 10 · NEARBY EDGE

Put an edge near the user

Now route the shopper to an edge server in Mumbai. New connections are set up over a 10 ms hop instead of a 200 ms one, so TCP plus TLS drops from about 400 ms to about 20 ms.

The edge keeps a warm, already-encrypted connection to Virginia, so a personalised page pays the short hop to the edge (10 ms), one ocean round trip and the server time: about 740 ms on a first visit instead of 1,110.

If the response is the same for everyone (images, scripts, a public product page), the edge can cache it and answer in one 10 ms round trip without touching Virginia at all.

Why it matters. An edge removes connection setup distance for everyone and the whole trip for cacheable content. It does nothing for the slow query on uncached pages.