System design · interactive
The journey of a request
Typing a URL and hitting enter touches DNS, a CDN, load balancers, app servers, caches and databases. Each hop costs time, and caching removes whole stretches of the trip. Times are illustrative.
- DNS lookupResolver walks to the authoritative server40 ms
- TCP + TLS to CDN edgeTwo round trips to a nearby edge30 ms
- CDN edgeMiss: forward to the origin2 ms
- Edge → origin load balancerLong-haul to the region70 ms
- App serverRender, call services15 ms
- Cache (Redis)Miss1 ms
- DatabaseQuery on the primary25 ms
- Response back to the userReturn trip, then the browser renders80 ms
total ≈ 263 ms
First visit pays for everything: DNS, new connections, the long trip to the origin, a cache miss and a database query.
Scenario
Step 1 of 4 · read left to right
In production
Tools and technologies
Tracing tools show the whole path of a request.
Not tied to one language — use these names when you search docs or design a system.