Related:
◈ Gemini API/2026-08-07Advanced
When Streaming Responses Quietly Lose Non-ASCII Text: Measuring the Byte Boundary and the Event Boundary Separately
I measured why Japanese text disappears from streaming Gemini responses using a local mock SSE server. Two separate layers were broken, one of them silently, and an English-only test suite caught neither.
◈ Gemini API/2026-05-26Advanced
Coalescing Gemini API Requests with SSE Fan-out: Collapsing 100 Simultaneous Hits into a Single Call
How I rebuilt the post-push-notification thundering herd on a 50M-download wallpaper app into a Cloudflare Durable Objects coalescer with SSE fan-out, cutting Gemini API costs by 92% with 14 days of production telemetry.
◈ Gemini API/2026-04-29Advanced
Building a Production-Grade Gemini API Backend with NestJS — DI, Filters, and Guards
A practical pattern for wrapping the Gemini API in a NestJS backend. Covers DI-based service design, SSE streaming, exception filters, guards, multi-model Flash-to-Pro fallback, exponential-backoff retries, and measured latency/token metrics.