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.
More on Load Balancing, Proxies & nginx in Production
How do you choose between ALB, NLB and an nginx or Envoy fleet?IntermediateHow do you tune ALB idle timeout and backend keep-alive to avoid 502s?IntermediateWhich nginx directives matter most for a production reverse proxy?IntermediateHow do you do rate limiting and abuse protection in nginx?IntermediateHow do you achieve zero-downtime configuration reloads in nginx and HAProxy?IntermediateHow would you design a highly available load-balancing tier on-prem or in a colo?Advanced