Entry point for client requests in microservices architecture.
What It Does¶
- Request routing
- Authentication (JWT/OAuth)
- Rate limiting
- Request/Response transformation
- Aggregation
- Caching
- Logging + monitoring
Implementation¶
- Kong — OSS, plugins
- AWS API Gateway — managed
- Traefik — cloud-native
- Nginx — DIY
Patterns¶
BFF — Backend for Frontend¶
Each client (web, mobile) has its own gateway.
Gateway Aggregation¶
Combines calls to multiple services into a single response.
Gateway = Entry Gate¶
Essential for microservices. Centralizes cross-cutting concerns.
api gatewaymicroservices