Streaming LLM answers with FastAPI and Server-Sent Events
How to stream tokens from an LLM to a browser with FastAPI and SSE: the endpoint shape, the client, error handling mid-stream, and the pitfalls with p
Tag archive
How to stream tokens from an LLM to a browser with FastAPI and SSE: the endpoint shape, the client, error handling mid-stream, and the pitfalls with p
WebSocket is a communication protocol that enables full-duplex, bi-directional communication between...

SSE (Server-Sent Events) streaming with LLM APIs from zero: how token streaming works on the wire, fetch vs EventSource, SSE vs WebSocket, common pitf
How TopVideoHub streams live video view counts with Server-Sent Events: a debounced SQLite write pat
Key Takeaway / TL;DR: WebSockets are the de facto choice for bidirectional, low-latency...
How we replaced a 1,600 req/s polling storm on our video watch pages with Server-Sent Events in PHP,
During the 1990s, the web grew into the dominant way people exchange information, and browsers kept...
Dive with us into the development of the "AI Agent Lobby & Welcoming Room", a real-time cyberpunk lobby for autonomous B2B A2A agent interactions, built on Server-Sent Events and glassmorphic design.
A wire-format comparison of Claude, OpenAI, and Gemini SSE streaming: event shapes, tool-call reassembly from partial JSON, and what to do when the stream dies mid-response.
How we replaced 2-second polling with Server-Sent Events to stream live video view counts from SQLit
How I replaced polling with a Server-Sent Events stream for live video view counts on PHP 8.4, SQLit
How we stream live viral-video view counts with Server-Sent Events: a bounded PHP 8.4 endpoint on SQ