API Gateway System Design
Understand API Gateway responsibilities in microservices architecture.
What is an API Gateway?
An API Gateway is the single entry point for clients to access backend microservices.
Responsibilities
- Routing
- Authentication
- Rate limiting
- Request transformation
- Logging
- Monitoring
Flow
Client → API Gateway → Auth Check → Rate Limit → Microservice
Best Practices
Keep business logic inside services, not inside the gateway.