API Design

API design patterns and best practices

Token Exchange at the API Gateway: RFC 8693 in Practice
SecurityAPI Design

Token Exchange at the API Gateway: RFC 8693 in Practice

OAuth token exchange (RFC 8693) lets your API gateway hand the producer a token that still carries the user, so RBAC keeps working. Hands-on with Keycloak.

15 min read
AI Gateway: Cost Control, Failover, and New Risk
API DesignResilience

AI Gateway: Cost Control, Failover, and New Risk

An AI gateway centralizes routing, budgets, and credentials for LLM traffic, but it also becomes a critical-path dependency with its own outage risk.

15 min read
Fastify vs Express: Is the Speed Worth the Switch?
API DesignArchitecture Practices

Fastify vs Express: Is the Speed Worth the Switch?

Fastify is a Node.js framework with about twice the throughput of Express and much lower P99 latency. Here is why, and how to migrate one route at a time.

16 min read
Server-Sent Events: The Humble Hero Between REST and WebSockets
API DesignArchitecture Practices

Server-Sent Events: The Humble Hero Between REST and WebSockets

Server-Sent Events give you HTTP-native server push without the cost of WebSockets. When to reach for SSE, and how to stream it from ASP.NET Core.

12 min read
Model Context Protocol: Teaching Your AI to Actually Read the Room
API DesignSecurity

Model Context Protocol: Teaching Your AI to Actually Read the Room

Model Context Protocol connects AI models to your real data and tools through one standard. How MCP works, where it fits, and the security gaps to close first.

27 min read
The BFF Pattern: Friendship Goals for Frontend and Backend
Design PatternsAPI Design

The BFF Pattern: Friendship Goals for Frontend and Backend

The BFF pattern gives each frontend its own backend, so mobile, web and TV stop fighting over one shared API. When to use it, and when it is just overhead.

7 min read