API gateways
The front door for your APIs: auth, limits and routing in one place.
2 technologies on this page ↓How it works
An API gateway sits in front of backend services and handles what every API needs: authenticating callers with API keys, JWTs or OAuth, rate limits and quotas, request validation, routing paths to the right service, and usage metrics. The services behind it can focus on business logic.
Building reception. They check your badge, sign you in, cap how many visitors each company gets, and tell you which floor to go to.
Reach for it when
- Public or partner APIs that need keys, quotas and usage plans
- One entry point in front of many microservices or functions
- Consistent auth and throttling without rebuilding it in every service
Think twice when
- High-volume internal service-to-service calls, where it adds latency and cost
- Serving static files; that’s a CDN’s job
A real example
A partner integration gets an API key limited to 100 requests per second. The gateway rejects bad tokens with 401 and excess traffic with 429, and routes /orders/* and /users/* to separate services.
Technologies
Specific products, and what each does differently.
Amazon API GatewayAWSAWS’s managed API front door: REST, HTTP and WebSocket APIs that authenticate, throttle and route calls to Lambda and other backends. Amazon API Gateway | Managed service on AWS | Amazon Web Services | Proprietary | 2026-10-05 |
| Commercial product | Cloudflare, Inc. | Proprietary | 2026-10-12 |
What each provider calls it
- AWS
- API Gateway
- Google Cloud
- Apigee, API Gateway
- Azure
- API Management
- Open source & others
- Kong, Tyk, Envoy Gateway
See it in a real stack
Architectures that use api gateways
In code · yaml
# Kong declarative config
services:
- name: orders
url: http://orders.internal:8080
routes: [{ paths: ["/orders"] }]
plugins:
- name: key-auth
- name: rate-limiting
config: { second: 100 }Often confused with
Where it came from2005–2023
The idea started in the service-oriented architecture era of the early 2000s, when companies connected systems with XML web services. Rack-mounted XML appliances, such as DataPower’s (bought by IBM in 2005), sat in front of those services to secure and speed up the traffic. As public web APIs spread for mobile apps and partners, every API needed the same chores: keys, quotas, security and usage analytics. Sonoa Systems, which began with a router-like XML appliance, released Apigee in 2009 as a cloud tool for exactly that, and renamed itself after it in 2010.
Microservices made the gateway the front door to a whole system. Netflix built an edge service, Zuul, to sit between its devices and its backend services, and announced it as open source in 2013. Chris Richardson’s microservices pattern describes the result: an API gateway is “the single entry point for all clients”, which either routes a request to one service or fans it out to several.
Then gateways became products anyone could rent or download. AWS launched API Gateway in 2015, with Lambda as its headline backend; Mashape open-sourced the gateway it had built for its own API marketplace as Kong the same year; and Google bought Apigee in 2016 for $625 million.
Why it’s built this way
- Take cross-cutting chores out of every service
- Authentication, rate limits and logging are the same for every API. Doing them once at the edge keeps that code out of each service and makes the rules consistent.
- A single entry point that can fan out
- Mobile networks are much slower and higher-latency than a data center LAN, so a screen that needs many backend calls feels sluggish. A gateway on the fast side can make those calls and return one combined reply.
- A gateway per kind of client
- Web, mobile and partner clients want differently shaped APIs. The “backends for frontends” variation gives each its own gateway, as Netflix did with client-specific adapter code.
Timeline
- 2005
IBM buys DataPower, maker of XML gateway appliances for SOA
- 2009
Sonoa Systems releases Apigee, a cloud API management tool
- 2013
Netflix announces Zuul, its edge gateway, as open source
- 2015
Amazon API Gateway launches; Mashape open-sources Kong
- 2016
Google acquires Apigee for $625 million
- 2023
Kubernetes Gateway API reaches v1.0, a standard way to configure gateways
- Chris Richardson: Pattern: API Gateway / Backends for Frontends
- Netflix Tech Blog: Announcing Zuul: Edge Service in the Cloud (Jun 2013) · archived copy, original
- Apigee IPO prospectus: incorporated as Sonoa Systems, renamed Apigee in September 2010 (SEC, 2015)
- Apigee press release: Apigee to be acquired by Google for about $625 million (SEC 8-K, Sep 2016)
- Google Cloud blog: Google to acquire Apigee (Sep 2016)
- Kong Inc.: About us (Mashape and the origin of Kong)
- Kong on GitHub: changelog of the first releases (2015)
- AWS News Blog: Amazon API Gateway – Build and Run Scalable Application Backends (Jul 2015)
- Kubernetes blog: Gateway API v1.0: GA Release (Oct 2023)
- Wikipedia: Apigee (Sonoa’s XML appliance and 2009 launch)
- Wikipedia: IBM WebSphere DataPower SOA Appliances (acquired October 2005)
Sources13
- Chris Richardson: Pattern: API Gateway
- API Gateway docs: Choose between REST APIs and HTTP APIs (API keys, throttling, JWT, validation)
- Google Cloud docs: About API Gateway
- Google Cloud docs: What is Apigee?
- Microsoft Learn: Azure API Management key concepts
- Kong Gateway on GitHub
- Tyk Gateway on GitHub
- Envoy Gateway
- Kong docs: DB-less mode and declarative configuration
- Kong docs: Key Auth plugin
- Kong docs: Rate Limiting plugin
- RFC 9110: HTTP Semantics (401 Unauthorized)
- RFC 6585: Additional HTTP Status Codes (429 Too Many Requests)