What is an API Gateway, and when would you use it in an architecture?
- API Gateway is a single entry point for APIs in a microservices architecture.
- Handles routing, load balancing, authentication, rate limiting, logging,
monitoring.
- Examples: Kong, NGINX, AWS API Gateway, Azure API Management.
- Use when:
- You have multiple microservices.
- Need centralized authentication/security.
- Need rate limiting or monitoring.