Why it matters

SSE is simple streaming choice. Understanding shapes UX.

Advertisement

The architecture

text/event-stream MIME.

Framed messages with id + event + data.

Auto-reconnect built-in.

SSE agent stackSSE endpointtext/event-streamData framesid + event + dataClient EventSourceauto-reconnectSimpler than WebSocket; server-to-client only; native browser support
SSE.
Advertisement

How it works end to end

Spring WebFlux ServerSentEvent.

Reconnect on drop.

Last-Event-ID for resume.

Browser EventSource API.