Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Which one to choose ?

Usually, APIs with light traffic are more cost-effective on API Gateway, while the high-traffic ones can find cost savings by adopting an ALB instead.

API Gateway

  1. Technically speaking, the main limitation of API Gateway is the timeout of 29 seconds. If a request takes more time to be processed by the backend resource (e.g. a Lambda function), the API will respond early to the client with an error.

  2. Although there is a limit in the number of requests per second, as mentioned above, it can be increased according to the demand.

  3. Suitable for small teams that want to reduce time-to-market, as well as sophisticated use cases that require complex security measures and access control logic.

Load Balancer

  1. Can scale to hundreds of thousands, or even millions of requests per second, without any issues.

  2. For that reason, an ALB is more suitable for low-cost/undifferentiated applications, long-running processes, and/or ultra-high-throughput applications.

  • No labels