Skip to main content
PreparationZone Logo
PreparationZone
Back to Fundamentals

Fundamentals · Medium · Free

What is an API gateway vs a load balancer?

FresherFundamentalsComputer Networks
Model answer

API gateway vs load balancer

For What is an API gateway vs a load balancer, interviewers listen for a crisp definition, how the pieces interact in a real system, and one trade-off or failure mode you have seen or would guard against.

Load balancerAPI gateway
LayerL4/L7 traffic distributionL7 + policies
FeaturesHealth checks, SSL offloadAuth, rate limit, routing, aggregation
ExampleALB to EC2 fleetKong, AWS API Gateway
Gateway is BFF for microservices—single public entry.