Technical for PMs · Medium
What happens, at a high level, when you type a website address into a browser?
Short answer
The browser looks up the domain's IP address through DNS, opens a secure connection to the server, and sends an HTTP request. The server, often behind a load balancer and content delivery network, processes it, possibly querying databases, and returns HTML. The browser then fetches CSS, JavaScript and images, and renders the page. Each step affects speed and reliability.
Detailed answer
Steps, in plain language
- DNS lookup: the browser asks the domain name system for the server's IP address. Results are cached at several levels.
- Connection: the browser opens a connection and, for HTTPS, performs a TLS handshake to encrypt traffic and verify the site's identity.
- Request: the browser sends an HTTP request for the page.
- Edge and routing: a content delivery network (CDN) may serve cached content from a nearby location; otherwise a load balancer routes the request to one of many servers.
- Server work: application code runs, may call other services and databases, and builds a response.
- Response: HTML is returned, along with headers that control caching.
- Rendering: the browser parses HTML, fetches CSS, JavaScript, fonts and images, then lays out and paints the page.
Why a PM should care
- Performance: slow pages often come from large images, too much JavaScript or slow database queries. Knowing where time goes helps prioritise fixes.
- Reliability: outages can happen at DNS, the CDN, servers or databases. Knowing the layers helps in incident conversations.
- Trade-offs: caching speeds things up but can show stale data, which matters for prices or stock levels.
Example use in an interview
If asked why a product page is slow on mobile data, you might suggest checking image sizes and caching first, then server response time, explaining why.
Common pitfalls
- Going so deep into protocols that the product relevance is lost.
- Using jargon without explaining it.
- Claiming certainty about a specific company's architecture.