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

  1. The decision space in one table
  2. Short polling vs long polling — mechanics and costs
  3. Server-Sent Events — the underrated default for push
  4. WebSockets — handshake, frames, and why they are stateful
  5. gRPC — contracts, streaming and the load-balancing trap
  6. Scaling WebSockets: connection servers + pub/sub fan-out
  7. Heartbeats, dead peers and reconnection
  8. Backpressure and slow consumers
  9. Capacity per server: from C10K to C1M
  10. 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