What is HTTP keep-alive and why does connection pooling improve performance?
- Keep-alive reuses TCP connections for multiple requests
- Reduces handshake/latency and resource usage
- Pooling limits concurrent sockets and improves throughput
- 💡TCP handshakes and TLS handshakes are expensive.
- ⚠️Failing to differentiate HTTP keep-alive as a protocol feature from connection pooling as an application-level management technique.
- ⚠️Not explicitly mentioning the overhead of the TCP three-way handshake and TLS handshake as the primary benefit of avoiding new connections.
- ⚠️Overlooking the resource utilization benefits, such as reduced server CPU/memory usage from not constantly creating and destroying sockets.
- ⚠️Failing to explain *why* limiting concurrent connections in a pool improves performance (e.g., preventing resource exhaustion on the server or client, better resource sharing).
- ⚠️Not mentioning that HTTP/1.1 makes keep-alive the default behavior unless explicitly disabled, which is important context.
- ❓How does HTTP/2 change this?
- ❓What about connection limits per host?
Ready to prove your AWS networking knowledge?
Practice with free Advanced Networking Specialty (ANS-C01) exam questions. Instant answers and detailed explanations — no account required.
Start free practice quizQuestions that share similar topics with this one
Common HTTP Status Codes
BeginnerHTTP/1.1 vs HTTP/2
IntermediatePurpose of a CDN
BeginnerDiagnosing Intermittent p99 Latency Spikes
AdvancedSlow CDN Performance
IntermediateDeepen your knowledge with these related blog posts
Paginated vs. Bulk API Calls: Performance, Cost, and Reliability Trade‑offs
Should you fetch many results at once or smaller batches at a time? A practical guide to the CPU, memory, network, and cloud-cost trade‑offs of paginated vs. one-shot API calls—with actionable rules of thumb.
Edge Computing Meets Edge Caching: Building Real-Time Applications at the Network Edge
Exploring how edge computing and caching converge to enable ultra-low latency applications. From personalized content delivery to A/B testing at the edge, learn how to architect systems that feel instantaneous regardless of user location.
Edge Compute with CDNs: Caching, Workers, and Safe Gradual Rollouts
Modern apps rely on edge compute and CDN workers for speed, personalization, and safe deployments. Learn practical strategies for caching, gradual rollouts, and real-world use cases.