Networking & Protocols (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
HTTP/3 and QUIC Protocol: Replacing TCP with UDP, 0-RTT handshakes, and solving Head-of-Line blocking.
senior LevelHTTP & REST APIs
In Simple Words: HTTP/2 multiplexed streams over a single TCP connection, but created TCP Head-of-Line Blocking: if a single network packet is dropped on flaky Wi-Fi, the OS kernel pauses all streams until that one lost TCP packet is retransmitted:
- QUIC / HTTP/3: Replaces TCP with UDP in user space:
- Independent Streams: Streams are decoupled at the transport layer. Dropping a packet in Stream 2 does not pause Stream 1!
- Connection Migration: Connections are tracked by a 64-bit Connection ID, not by IP/Port. If a user walks out of Wi-Fi range and switches to 5G cellular, the connection continues uninterrupted with zero handshake reconnect!
- 0-RTT Resumption: Clients that previously connected can send encrypted application payloads on the very first round trip.