47% OFFYearly Pro
$30/mo$16/mobilled yearlyGet Pro
Topic

API Development

Explore our latest articles and insights about API Development.

Explore posts

20 posts in total

AI Engineering in Practice

FastAPI CORS for production agentic APIs

How to configure CORS for a production agentic API without wildcard origins. The allowlist, the credentials flag, and the preflight that breaks SSE.

AI AgentsAPI Development+3
Read post
7 min
AI Engineering in Practice

FastAPI lifespan for agentic services: startup and shutdown

Why FastAPI lifespan is the only right place for agent startup code. Per-worker initialization, ordered teardown, and the bugs it kills.

AI AgentsAPI Development+3
Read post
8 min
AI Engineering in Practice

Async context management in Python AI services

How async context managers prevent connection leaks in Python AI services. The lifespan, contextvars, and middleware patterns that survive load.

PythonProduction AI+3
Read post
9 min
AI Engineering in Practice

FastAPI + LangGraph: production chatbot API pattern

How to wire LangGraph into a FastAPI chatbot API with streaming, persistence, and per-user threads. The production pattern that scales past demos.

AI AgentsLangGraph+3
Read post
8 min
AI Engineering in Practice

FastAPI dependency injection for agentic API auth

How FastAPI Depends makes agent auth testable and composable. The pattern, the chain, and why module-level globals break at scale.

AI AgentsAPI Development+3
Read post
9 min
AI Engineering in Practice

Postgres state persistence for agentic systems

How to persist agent state in Postgres so conversations survive restarts. The schema, the session writer, and the idempotency rule that prevents loss.

AI AgentsProduction AI+3
Read post
9 min
AI Engineering in Practice

Service layer for AI agents: decoupling logic from routes

How a service layer in an AI agent codebase decouples business logic from HTTP routes. The pattern, the tests, and the refactor from a fat route.

AI AgentsSystem Design+3
Read post
9 min
AI Engineering in Practice

Production env variable parsing in Python AI services

How to parse environment variables in Python AI services without os.environ.get footguns. Pydantic Settings, type coercion, and the validation layer.

PythonProduction AI+3
Read post
9 min
AI Engineering in Practice

Input sanitization for agentic APIs

How to sanitize agent API inputs beyond frontend validation. Prompt injection defense, payload limits, and the 4 layers every agent service needs.

AI AgentsGuardrails+3
Read post
11 min
AI Engineering in Practice

API versioning for agentic services: a practical guide

How to version an agentic API without breaking clients. The URL prefix pattern, the deprecation playbook, and when to ship v2.

AI AgentsAPI Development+3
Read post
11 min
AI Engineering in Practice

JWT authentication for agentic APIs

How to use JWTs for agentic API auth. The claims that matter, the refresh rotation pattern, and the middleware that keeps long-running agents logged in.

AI AgentsAPI Development+3
Read post
11 min
AI Engineering in Practice

Rate limiting FastAPI agents: token buckets in production

How to rate limit a FastAPI agent service. Token buckets per user, burst control, and the Redis pattern that survives multi-worker deployments.

AI AgentsAPI Development+3
Read post
11 min

Weekly Bytes of AI

Technical deep-dives for engineers building production AI systems.

Architecture patterns, system design, cost optimization, and real-world case studies. No fluff, just engineering insights.

Unsubscribe anytime. We respect your inbox.