Why it matters

Streaming shapes UX. Fast time-to-first-token beats total time.

Advertisement

The architecture

LLM: streaming API returns Flux.

Transport: SSE or WebSocket.

Client: incremental render.

Streaming output stackLLM APIstreaming callFluxreactive streamSSE / WSto clientBackpressure via Reactor; handle client disconnect cleanly
Streaming.
Advertisement

How it works end to end

Reactor Flux: token-by-token.

SSE via Spring WebFlux.

Client accumulates tokens.

End marker on stream complete.