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
Rate Limiting
Rate limiting caps how often a client can act, protecting shared capacity by rejecting or delaying the excess.
Networks & Distribution4 connections
Load Balancing
A load balancer spreads requests across many backend instances, turning "one server" into "one address."
Networks & Distribution8 connections
Circuit Breaker
A circuit breaker stops calling a failing dependency, converting slow repeated failures into a fast, cheap one.
Networks & Distribution5 connections
Webhook
A webhook is an HTTP callback a service pushes to you when an event happens, inverting who initiates the request.
Networks & Distribution7 connections
Content Delivery Network
A CDN answers requests from servers near the requester, trading a single origin for many cached edges.
Networks & Distribution10 connections
Linked from5
- 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."
- Rate LimitingNetworks & Distribution
Rate limiting caps how often a client can act, protecting shared capacity by rejecting or delaying the excess.
- 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.