Why it matters
Streaming is table stakes for good UX. Understanding transport enables selection.
Advertisement
The architecture
SSE: server-to-client only. HTTP-based. Simplest.
WebSocket: bidirectional. Enables mid-generation input.
gRPC streaming: for backend-to-backend.
Advertisement
How it works end to end
Event framing: JSON per event line for SSE; message per frame for WS/gRPC.
Backpressure: slow clients require flow control.
Reconnection: SSE has native support via Last-Event-ID.