8 min read
Server-Sent Events Beat WebSockets for 80% of My AI Streaming UIs: 5 Patterns
Server-Sent Events handle 80% of AI streaming UIs with one HTTP connection and zero WebSocket overhead. 5 production…
The Lab · Written in the open · Tagged Streaming
Working notes from the studio. The tools I build, the workflows I keep, the mistakes I paid for.
2 entries · latest 2026-05-28
Latest entry
Token paint with backpressure stops fast streams from crashing slow UIs Partial tool_use blocks let you show "querying X..." 200ms into a call AbortController cancels mid-stream so a stopped reply costs ~12% not 100% Chunked persistence means a refresh resumes...
Read the entry
Latest entry · Development
All entries · Streaming
8 min read
Server-Sent Events handle 80% of AI streaming UIs with one HTTP connection and zero WebSocket overhead. 5 production…