An API Gateway is the single entry point for all client requests in a system of multiple microservices.
It handles request routing, rate limiting, logging, and can validate authentication tokens, but actual authentication (like login and token generation) is handled by a dedicated user or auth service
Ref - https://github.com/karanpratapsingh/system-design#api-gateway
Responsibilities:
Authentication (token validation)
Authorization (access control)
Routing to correct service
Rate limiting
Logging
Reverse Proxy
👉 Example:
Amazon API Gateway
Load Balancer
Load balancing lets us distribute incoming network traffic across multiple resources ensuring high availability and reliability by sending requests only to resources that are online. This provides the flexibility to add or subtract resources as demand dictates.


Top comments (0)