Interview Prep/Networking/HTTP, TLS & Certificates

What are HTTP keep-alive and connection reuse, and why do they matter?

AdvancedConceptHTTP, TLS & Certificates
Answer

Keep-alive keeps the TCP (and TLS) connection open for multiple requests, avoiding a handshake each time. It is default in HTTP/1.1.

Timeouts must be coordinated: if an upstream closes idle connections sooner than the load balancer does, the LB reuses a dead socket and returns 502. Rule of thumb: the backend keep-alive timeout should exceed the LB idle timeout (ALB default 60s, so set Node/nginx upstream to 65s+).

All Networking questions Roadmap: Networking for DevOps

More on HTTP, TLS & Certificates