API Gateway
An API gateway is the single front door to a set of backend services, handling cross-cutting policy once instead of per-service.
An API gateway sits in front of a collection of backend services and gives clients one address and one contract to talk to, rather than making every client know where each individual service lives. It's the layer where cross-cutting concerns — authentication, Rate Limiting, TLS termination, request logging, response caching — get handled once, centrally, instead of being reimplemented inside every service behind it.
This matters most once an architecture has split into many small services. Without a gateway, each service has to independently implement auth checks and rate limits, and clients need service discovery to find the right host for each call. With one, the gateway authenticates the request, decides whether it's within its quota, and then routes it — often by path prefix — to whichever backend actually owns it, translating a stable public API into an internal topology that's free to change without breaking anyone.
A gateway is also a natural place to put a Circuit Breaker per backend route, since it already sees every call to every service and can track failure rates without extra instrumentation. Similarly it can do request/response transformation — reshaping a legacy service's payload into the shape a public API promises — so the messiness of internal services never leaks to callers.
It's easy to conflate an API gateway with a plain load balancer, but they solve different problems: a load balancer picks which instance of a single service handles a request, while a gateway decides which service handles it at all, plus everything policy-related around that decision. Large systems typically have both — a gateway routing by API contract, and a load balancer behind each route spreading traffic across that service's instances.
See also5
Middleware
Functions that sit between an incoming web request and the code that answers it, each able to inspect, change, or end the request, chained in an order that quietly determines how the whole application behaves.
Web Platform8 connections
OpenAPI
A standard, machine-readable format for describing HTTP APIs, listing every endpoint, parameter, and response shape, from which tools generate documentation, client libraries, mock servers, and tests.
Web Platform11 connections
Webhook
A webhook is an HTTP callback a service pushes to you when an event happens, inverting who initiates the request.
Networks & Distribution16 connections
Content Delivery Network
A CDN answers requests from servers near the requester, trading a single origin for many cached edges.
Networks & Distribution22 connections
Reverse Proxy
A server that sits in front of other servers and receives clients' requests on their behalf, handling encryption, routing, caching, and protection in one place.
Networks & Distribution15 connections
Linked from8
- Content Delivery NetworkNetworks & Distribution
A CDN answers requests from servers near the requester, trading a single origin for many cached edges.
- Load BalancingNetworks & Distribution
A load balancer spreads requests across many backend instances, turning "one server" into "one address."
- MiddlewareWeb Platform
Functions that sit between an incoming web request and the code that answers it, each able to inspect, change, or end the request, chained in an order that quietly determines how the whole application behaves.
- OpenAPIWeb Platform
A standard, machine-readable format for describing HTTP APIs, listing every endpoint, parameter, and response shape, from which tools generate documentation, client libraries, mock servers, and tests.
- Rate LimitingNetworks & Distribution
Rate limiting caps how often a client can act, protecting shared capacity by rejecting or delaying the excess.
- Reverse ProxyNetworks & Distribution
A server that sits in front of other servers and receives clients' requests on their behalf, handling encryption, routing, caching, and protection in one place.
- WebhookNetworks & Distribution
A webhook is an HTTP callback a service pushes to you when an event happens, inverting who initiates the request.
- Zero Trust NetworkNetworks & Distribution
Zero trust authenticates and authorizes every request individually, treating network location as no proof of anything.