Every real-time feature starts with the same question: WebSocket, SSE, or polling? The answer depends on three things: directionality, scale, and infrastructure tolerance for long-lived connections.

Polling: the one that always works

HTTP polling is boring and scales trivially. Every request is stateless, every CDN and load balancer handles it without configuration, and debugging is straightforward. It’s the right default for updates under 1Hz frequency.

SSE: the underrated middle ground

Server-Sent Events are HTTP, unidirectional, and reconnect automatically. If you only need server-to-client streaming (notifications, dashboards, live feeds), SSE is simpler than WebSocket and works through proxies that mangle WebSocket upgrades.

WebSocket: the one you actually need

Bidirectional, low-latency, expensive to operate. Use when you need client-to-server pushes at sub-second latency: collaborative editing, live chat, multiplayer games, trading. Budget for connection state, heartbeats, and reconnection logic — it’s always more work than you estimate.

We’ve shipped all three in production under New Products. Choose based on what your feature actually needs, not what sounds most impressive on the architecture review.