HTTPDNSTCPTLSRequest/ResponsePerformance

HTTP Lifecycle

Trace the full journey of an HTTP request — from the moment a user clicks a link to the moment pixels appear on screen. Understand DNS, TCP, TLS, request/response structure, and where latency hides so you can optimize and debug like a pro.

30 min read14 sections
01

Overview

Every time you type a URL and press Enter, a complex chain of events fires behind the scenes — DNS lookup, TCP connection, optional TLS handshake, HTTP request, server processing, HTTP response, and finally browser rendering. The entire round trip typically takes 200–800ms, but each step can become a bottleneck.

Understanding this lifecycle is foundational for frontend system design. It explains why pages feel slow, where latency hides, and what you can optimize. It also connects every other topic in this roadmap — caching headers, CDNs, rendering pipelines — back to a single coherent flow.

"What happens when you type a URL into the browser?" is the most classic frontend interview question. A strong answer walks through each step with enough depth to show you understand the system, not just the surface.

Why this matters

This is the one topic that ties everything together. DNS, TCP, TLS, HTTP methods, status codes, caching, rendering — they all live on this timeline. Master the lifecycle and every other networking topic clicks into place.

1 / 14