Interview Prep/Networking/Load Balancing, Proxies & nginx in Production

What is the role of an API gateway versus a load balancer?

BeginnerProductionLoad Balancing, Proxies & nginx in Production
Answer

A load balancer distributes traffic. An API gateway adds API-level features: authentication, authorization, quotas, request transformation, versioning, caching, developer portals and usage analytics (Kong, Apigee, AWS API Gateway, Envoy Gateway).

Often chained: CDN, WAF, load balancer, gateway, services. Don't use a gateway as a dumping ground for business logic.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production