Last active
March 27, 2025 05:17
-
-
Save tarunjain07/c40519c607462f2635d262c049f5ca5d to your computer and use it in GitHub Desktop.
AWS ALB vs API Gateway
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWS | | | |
| -------------------------------------------------------------------------------- |-----------------------------------------------------------------------------| | |
| API Gateway | ALB | | |
| Manages the routing and processing of API requests from clients | Distributes incoming traffic across multiple instances of service | | |
| Can implement rate limiting, bursting for APIs | No rate limiting, bursting capability | | |
| Not possible to get a static IP addresss for endpoint (always a URL) | Possible to get a static IP address for load balancer endpoint | | |
| Accepts HTTPS traffic | Accepts HTTP, HTTPS traffic | | |
| Able to do request validation(apache velocity), request/response mapping | Not able to do request validation, request/response mapping | | |
| Able to handle spkiy traffic (default rate - 10k rps, 5k burst rate) | Delay during spkiy traffic, pre-allocate LCUs to avoid delay(charged extra) | | |
| Can scale up and down | | |
| Able to integerate with Lambda from different region, even different AWS account | ALB is a regional service | | |
| Able to export/import APIs cross APO platforms using swagger, Open API Spec 3.0 | No direct method to import/export rules for cross platforms | | |
| Able to cache responses | Not able to cache responses | | |
| Timeout limit 30 seconds | Timeout limit 4000 seconds | | |
| Integerates with almost all AWS services | Use EC2, Lambda, IP addresses as backend | | |
| No health check available | Health check available | | |
| Pay per use | Pay for idle | | |
| Kong Gateway, AWS API Gateway, Apigee, Kong | AWS Elastic Load balanacer, Nginx, HAProxy | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment