ExitAmazon API Gateway vs Elastic Load Balancing: choosing an ingress boundary1 / 9
Explanation

Choose the responsibility, not just the protocol

When managed API mediation is preferable to load-balanced application ingress, and when the two belong together. · advanced

API Gateway is preferable when the public boundary must enforce an API contract independently of the application: authorization, route-level throttling, and supported request mediation. Select features by API type: HTTP APIs offer native JWT authorization; REST APIs add capabilities such as usage plans and request validation. An endpoint carrying JSON does not, by itself, need API Gateway.

Elastic Load Balancing is preferable when the boundary primarily distributes application traffic. An ALB provides HTTP routing and target health checks; an NLB handles transport traffic such as TCP, UDP, and TLS. ALB also supports authentication features, including OIDC authentication for HTTPS listeners, so the distinction is not security versus no security. It is managed API policy versus application ingress.

Prefer a direct ALB when the application already owns its API policies and another mediation layer adds no required capability. CloudFront provides edge delivery and caching, not a substitute for API Gateway's API authorization and throttling. AppSync's managed GraphQL API model is different from placing a general HTTP API boundary in front of an existing application.

Decision pointAPI GatewayDirect ALB ingress
Primary responsibilityManaged API policyApplication traffic distribution
Routing abstractionAPI routes and integrationsListeners and target groups
Consumer controlsAPI-type-specific controlsApplication-owned API policies
Backend selectionConfigured integrationTarget-group health and routing

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.