Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconIdatlassian-warning
panelIcon:warning:
bgColor#FFF0B3

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.

...

  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.

Can API Gateway replace or act as a load balancer ? Yes.