


However, for data intensive services, ALB gets expensive quite quickly at scale and surpasses APIG by 10 billion requests per day. However, after 500,000 requests per day, API Gateway prices take off at a faster rate than ALB prices. This is a big number - API Gateway remains cheaper than ALB at a surprising scale. Requests with small responsesĪLB starts out more expensive but becomes cheaper at around 500,000 requests per day. Let’s cost out a few common cases, all in log10 scale. As the goal of this post is to demonstrate pricing differences between API Gateway and ALB, all prices and calculations will be done using the pricing in the AWS region us-east-1 at the time of this writing. I’ll work under the assumptions that API Gateway is easier to set up and more feature-rich out of the box. While both services differ in ease of use and feature-sets, this post will be constrained to talking about cost to achieve certain objectives. Most people believe that API Gateway is under powered and expensive, while ALB is really powerful and cheap. Both services can be used in tandem with Lambda, EC2, Fargate, and VPCs.

API Gateway and Application Load Balancer (ALB) are both great ways to route and serve requests from wherever your services live.
