HTTP Keep-Alive

Reuse connections.

Overview

HTTP keep-alive reuses TCP connections across multiple requests rather than handshaking on every call. Without keep-alive, every HTTP request pays the TCP three-way handshake plus TLS negotiation; with it, those costs amortise across many requests on the same connection. Modern HTTP enables keep-alive by default; the discipline is tuning the timeouts and monitoring the connection pool so the savings actually land.

The approach

Three habits make keep-alive produce real wins: enable connection pooling on clients, tune server-side timeouts to match request intervals, and monitor connection-pool health as a standing signal.

Why this compounds

Each reused connection saves a handshake. Across hundreds of millions of requests per day, the savings show up in latency, CPU, and capacity headroom. The team’s HTTP performance fluency deepens; new services inherit the conventions on day one.