HTTP/2 vs HTTP/3
Most engineers know HTTP/3 uses UDP instead of TCP.
HTTP/2 vs HTTP/3
Most engineers know HTTP/3 uses UDP instead of TCP.
But few talk about the exact architectural reason why this shift changes web performance entirely.
If you are still optimizing for the HTTP/2 era, your network topology might be lagging behind.
Here is the breakdown of HTTP/2 vs. HTTP/3 — and the engineering shifts that actually matter:
1. The Head-of-Line (HoL) Blocking Fix
- HTTP/2: Introduced multiplexing, allowing multiple assets to travel over a single TCP connection. The hidden trap? If a single TCP packet is dropped, the entire connection freezes until it is retransmitted. One slow image blocks your entire application payload.
- HTTP/3: Runs on QUIC (over UDP). It treats every stream completely independently. If a packet drops on Stream A, Streams B through Z keep flying without a millisecond of delay.
2. Eliminating Handshake Bloat
- HTTP/2: Requires a classic TCP 3-way handshake, followed by a separate TLS negotiation. That is 2–3 round-trips (RTT) just to say hello before any data moves.
- HTTP/3: QUIC bakes TLS 1.3 encryption directly into the transport layer. Connection setup drops to a single RTT. Even better: returning clients can leverage 0-RTT, sending data on the very first packet.
3. Bulletproof Connection Migration
- HTTP/2: Tied strictly to the IP-tuple (Source IP + Port). If a user walks out the front door and switches from Wi-Fi to 5G, the TCP connection breaks, forcing a full reconnect.
- HTTP/3: Introduces unique Connection IDs independent of the IP routing. Switching networks is entirely seamless; the active download or video call continues without a stutter.
The Reality Check for Cloud Architects
Upgrading isn’t just a switch you flip. Moving to HTTP/3 means:
- Edge proxies and firewalls must be configured to allow UDP traffic on port 443.
- Higher CPU overhead at the load-balancer layer due to intensive user-space packet processing in QUIC.
- Browsers negotiate the protocol via the
Alt-Svcheader, meaning the very first hit to your domain will still default to HTTP/2 before upgrading.
The biggest performance wins aren’t on perfect fiber connections — they are felt by mobile users, international traffic, and high-latency, lossy networks.
Is your team running HTTP/3 at the edge yet, or are the UDP firewall policies holding you back? Curious to hear what real-world latency drops you’ve seen post-migration.
WebPerformance #CloudArchitecture #BackendEngineering #DevOps #Networking #AWS
메타데이터
- post_id
- 060bd00c8dca
- slug
- http-2-vs-http-3-060bd00c8dca
- url
- https://medium.com/@waytohksharma/http-2-vs-http-3-060bd00c8dca
- canonical_url
- https://medium.com/@waytohksharma/http-2-vs-http-3-060bd00c8dca
- author_url
- https://medium.com/@waytohksharma
- status
- ok
- fetched_at
- 2026-08-11 21:37:23