REST vs gRPC vs WebSockets vs SSE vs Long Polling
Pick the right transport, then make it survive scale: connection servers, pub/sub fan-out, heartbeats, backpressure, reconnect storms and C1M capacity.
About 75 minutes · 15 exam questions · 9 interview questions · 2 code labs
What you will learn
- The decision space in one table
- Short polling vs long polling — mechanics and costs
- Server-Sent Events — the underrated default for push
- WebSockets — handshake, frames, and why they are stateful
- gRPC — contracts, streaming and the load-balancing trap
- Scaling WebSockets: connection servers + pub/sub fan-out
- Heartbeats, dead peers and reconnection
- Backpressure and slow consumers
- Capacity per server: from C10K to C1M
- Deploying stateful connection servers & interview playbook
Previous: DNS, TCP/UDP, HTTP/1.1 → HTTP/2 → HTTP/3 & TLS · Next: Reverse Proxy, Forward Proxy, API Gateway & BFF