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 point | API Gateway | Direct ALB ingress |
|---|---|---|
| Primary responsibility | Managed API policy | Application traffic distribution |
| Routing abstraction | API routes and integrations | Listeners and target groups |
| Consumer controls | API-type-specific controls | Application-owned API policies |
| Backend selection | Configured integration | Target-group health and routing |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.