FUNDAMENTALS & NETWORKING · SUBTOPIC
HTTP/2, HTTP/3 (QUIC) & gRPC
Multiplexing, mobile-friendly QUIC connections, and binary service-to-service RPC.
IntermediatePart of Networking & Protocols
Subtopics in Networking & Protocols (2)
In plain words
HTTP/1.1 was a single-lane road; HTTP/2 turned it into a multi-lane highway; HTTP/3 (QUIC) ensures a breakdown in one lane doesn’t block the other lanes.
Think of it like…
REST/JSON is a readable paper form anyone can read; gRPC/Protobuf is a compact barcode spoken fluently between two internal machines.
Loading interactive diagram
Loading interactive exercise
Theory & how it works
Why internal microservices use gRPC
JSON is text-heavy and needs runtime parsing. gRPC serializes typed schemas via Protocol Buffers (Protobuf) - often 3–10× smaller and faster to parse, with native streaming over HTTP/2 and strict .proto contracts across languages (Go, Java, Python, TypeScript).
Key points & practical guide
Summary checklist
- HTTP/2 multiplexes many requests on one TCP connection
- HTTP/3 (QUIC) runs over UDP with built-in TLS 1.3 and fast mobile handoffs
- gRPC excels internally; REST/JSON remains universal for public/browser APIs
When to use it
- HTTP/2 & HTTP/3 for all modern web traffic
- gRPC for low-latency internal service-to-service calls
Watch out for
- Exposing raw gRPC straight to browsers without gRPC-Web or a gateway
Quick check
Loading quiz