#Backend(7)

August 2026
#LLM #FastAPI #Python #Reliability #Backend

Circuit Breakers for LLM API Calls

When an LLM provider degrades, retries make it worse. A practical guide to adding a circuit breaker in Python: the three states, tuning, and failure modes.

Read more →
August 2026
#FastAPI #Python #Redis #Backend #LLM

Rate Limiting a FastAPI Service with a Token Bucket

Add per-user rate limiting to a FastAPI backend with the token bucket algorithm: an in-process version, an atomic Redis script, 429s, and the failure modes.

Read more →
August 2026
#FastAPI #Python #Backend #AI #API

How FastAPI Dependency Injection Actually Works

A practical guide to FastAPI dependency injection: how Depends resolves a graph, yield setup and teardown, per-request caching, and where it leaks.

Read more →
July 2026
#LLM #FastAPI #Python #Backend #AI

Handling LLM API Rate Limits: Retries and Backoff

Your LLM backend returns 429s the moment traffic bursts. How to retry with backoff and jitter, respect Retry-After, and pace fan-out to stay under the limit.

Read more →
July 2026
#FastAPI #Python #AsyncIO #Backend #LLM

FastAPI Event Loop Blocking: Sync vs Async

One blocking call in a FastAPI route stalls every other request, including live SSE streams. Here is how the event loop breaks, and how to keep it free.

Read more →