FastAPI Textbook Ch. 8 — WebSockets, SSE, and Streaming Responses

Real-time FastAPI: WebSockets, broadcast / pub-sub, SSE for one-way streams, StreamingResponse, NDJSON, and disconnect handling.

May 6, 2026 · 5 min · 932 words · Manvendra Rajpoot

Next.js Cheatsheet 13 — Streaming and Suspense

Cheatsheet: streaming SSR, Suspense, loading.tsx, parallel data fetching.

May 20, 2026 · 3 min · 628 words · Manvendra Rajpoot

Streaming Patterns in 2026 — SSE, WebSocket, gRPC, and HTTP Streaming

Practical streaming protocol selection: SSE for one-way, WebSocket for bidi, gRPC for typed RPC, NDJSON for JSON streams. Comparison and production patterns.

May 5, 2026 · 4 min · 794 words · Manvendra Rajpoot

Go gRPC Streaming Patterns in 2026 — Server, Client, and Bidi That Don't Leak

Practical gRPC streaming in Go: server streaming for fanout, client streaming for uploads, bidi for chat, cancellation via context, and avoiding goroutine leaks.

May 4, 2026 · 5 min · 901 words · Manvendra Rajpoot

FastAPI Streaming and SSE in 2026 — Real-Time Without WebSockets

Practical FastAPI streaming: SSE for one-way real-time, NDJSON for streamed JSON, LLM token streaming, backpressure handling, and reconnect patterns.

May 2, 2026 · 4 min · 751 words · Manvendra Rajpoot

LLM Streaming with Cancellation — Patterns That Don't Waste Tokens

Production LLM streaming with cancellation. SSE plus abort, client cancel propagating to provider, partial-response handling, and the patterns that save real tokens.

April 30, 2026 · 3 min · 560 words · Manvendra Rajpoot

gRPC Streaming Patterns in 2026 — Server-Streaming, Client-Streaming, and Bidi

How to use gRPC’s three streaming modes correctly. Server-streaming, client-streaming, bidirectional, deadlines, errors, flow control, and concrete patterns for live updates and uploads.

April 30, 2026 · 4 min · 767 words · Manvendra Rajpoot

Postgres CDC and Logical Replication in 2026 — Debezium, pgoutput, and the Outbox Alternatives

How CDC actually works in 2026. Postgres logical replication slots, pgoutput, Debezium, the outbox pattern, and how to fan out changes to Kafka, NATS, ClickHouse, OpenSearch, or your AI pipeline.

April 30, 2026 · 6 min · 1273 words · Manvendra Rajpoot

Design YouTube / Video Streaming — A System Design Walkthrough

A complete system design for a YouTube-style platform. Upload, transcoding to HLS/DASH variants, storage at petabyte scale, CDN delivery, adaptive bitrate, recommendations, and the operational realities.

April 30, 2026 · 7 min · 1338 words · Manvendra Rajpoot

SSE vs WebSockets in 2026 — Streaming AI Apps, Chat, and Real-Time UIs

A practical comparison of Server-Sent Events and WebSockets in 2026. The protocol differences, AI token streaming, chat with cancellation, code in FastAPI, Hono, and Axum, scaling and CDN/proxy behavior, and a clear decision rule.

April 29, 2026 · 7 min · 1488 words · Manvendra Rajpoot