KatInterview

From Address Bar to Pixels: Tracing a Secure Page Load

System DesignModel answer
MediumModel answerSystem Designnetworkingdnstls

Last updated

Describe the full journey of a secure page request, from the browser's first lookups through DNS, connection setup, edge and backend handling, to the final rendering of the page.

A user types https://www.example-shop.com into a browser and presses Enter. A few hundred milliseconds later, a fully rendered page is on screen.

Walk through everything that happens in between. Your answer should cover:

  • What the browser does before touching the network
  • How the hostname is turned into an IP address
  • How a secure connection is established
  • How the request and response are exchanged
  • What sits between the user and the application code (edge networks, load balancers, gateways)
  • What the backend does to produce the response
  • How the browser turns the response into pixels and loads the remaining resources

Start with a short outline, then go stage by stage. Where it is relevant, mention where latency is spent and where caching helps. Be ready to go deeper on any stage.

Hints

Hint 1

Begin with a one-line outline of the whole pipeline so the structure is clear before you add detail. Then keep the order of dependencies right: you cannot start TLS before a transport connection exists, and you cannot connect without an IP address.

Hint 2

For every stage, ask what is cached and what it costs in round trips. Think about DNS caches and TTLs, reused connections, TLS session resumption, the HTTP cache, and CDN edge caches.

Hint 3

Do not stop when the HTML arrives. Cover how the browser builds the DOM and CSSOM, why CSS and synchronous scripts block rendering, the layout, paint and composite steps, and the subresource requests that follow.