Definition
An API Gateway is a server that acts as a single entry point for clients accessing various backend services. It handles incoming requests, routes them to the appropriate microservice or application, and then returns the response to the client. This abstraction simplifies client interactions and allows backend services to evolve independently without affecting consumers. API Gateways often manage tasks like authentication, authorization, rate limiting, and request transformation, centralizing cross-cutting concerns. For instance, a mobile app might use an API Gateway to access user profiles, order processing, and payment services, all through one unified interface. Unlike a simple load balancer that distributes traffic, an API Gateway provides intelligent routing and policy enforcement. This concept is fundamental in cloud architecture and frequently appears on exams like AWS Certified Solutions Architect and CCSP.
Compare with nearby terms
- API Gateway vs Load balancerA load balancer spreads traffic. An API gateway adds auth, rate limits, and routing for API consumers.
- API Gateway vs WAFA WAF stops common web attacks. An API gateway manages API auth, routing, and quotas for consumers.
- API Gateway vs HTTPHTTP is the protocol. An API gateway is a control point that accepts HTTP API calls with policy on top.
- API Gateway vs APIAn API is the contract. An API gateway is infrastructure that fronts many APIs with shared policy.
