Design

API gateway

An API gateway is the single entry point in front of a service ecosystem that handles cross-cutting concerns, authentication, rate limiting, request routing, response aggregation, caching, observability, so each backend service doesn't reimplement them. Common examples: AWS API Gateway, Kong, Tyk, Apigee, Envoy as a gateway.

Updated

The pattern is most useful when many small services serve a heterogeneous client base (web, mobile, third-party API), where centralising auth and rate limits saves enormous duplication. The trade-off is the gateway becomes a chokepoint, both for performance (it sits in the critical path of every request) and for change management (gateway misconfig takes down everything). Healthy architectures keep gateway logic thin (auth, rate-limit, route) and push protocol-specific concerns to a backend-for-frontend layer behind the gateway. The pattern is sometimes confused with service mesh; the practical distinction is north-south traffic (gateway: external clients to services) vs east-west traffic (mesh: service to service).

See the term at work

Stride keeps stories, architecture decisions, tests and delivery data in one workspace, where the terms in this glossary are things you can open.