Push, not poll.
WebSockets and Server-Sent Events: push, not poll
design for the day something breaks
WebSocket needs CORS-equivalent and load balancer support.
WebSockets give bidirectional, frame-based messaging on a long-lived connection. Server-Sent Events (SSE) give simple server-to-client push over HTTP. Both reduce polling and enable realtime UX.
WebSockets: full duplex, binary frames, custom subprotocols. Broad use: chat, games, live data.
SSE: text/event-stream over HTTP — simpler, restarts/reconnects baked in.
Plan reconnection (backoff + last-event-id), heartbeats, and per-connection state.
Live order updates dashboard.