HTTP/1.1, HTTP/2 and HTTP/3: what changed and why does it matter in operations?
BeginnerScenarioTLS, HTTP & Application Layer
Answer
Situation read → Each version fixed head-of-line blocking at different layers.
What I'd do →
- HTTP/1.1 needs multiple connections for parallelism
- HTTP/2 multiplexes streams over one TCP connection with header compression, but one lost packet blocks all streams (TCP head-of-line blocking)
- HTTP/3 runs over QUIC on UDP 443 and avoids that, with faster handshakes
- Test with
curl --http2 -I https://example.comandcurl --http3 -I https://example.com - Ensure firewalls allow UDP 443
Why → Fewer connections and fewer round trips reduce latency, especially on mobile networks.
Interview tip → Mention that gRPC requires HTTP/2.
More on TLS, HTTP & Application Layer
Explain what happens in a TLS 1.3 handshake in a few sentences.BeginnerYour site must redirect all HTTP traffic to HTTPS. How do you do it?BeginnerWhat is the difference between 4xx and 5xx errors, and which ones do you see most in networking problems?BeginnerThe browser console shows a CORS error when your frontend calls your API. What is it and how do you fix it?BeginnerHow do you check which certificate a server presents and when it expires?BeginnerWhat is the difference between HTTP keep-alive and a new TCP connection per request?Beginner