![]() ![]() As applications become more complex or start to front a ton of requests (more than ~500,000 requests per day), it makes sense to switch to ALB. Our recommendationīased on our analysis, for most cases, it makes sense to use API Gateway to begin new services due to the out-of-the-box feature-set, ease of use, and cost at low scale. ![]() ![]() As shown above, while that may be the case at scale, for new or lightly-trafficked services, it’s pretty cheap and many services can take advantage of the 1 million request per month free tier. ALB vs API Gateway: which should I use?ĪPI Gateway is thought of as an expensive service. In the calculations above, LCUs were always determined by the amount of data transferred.įinally, in order to get some of the same functionality as we get with API Gateway, I’ve added Amazon Web Application Firewall (WAF) to our estimates. ALB is also more LCU-intensive when interacting with Lambda. In other words, there's no way to manually set the number of LCUs used. ![]() It’s worth noting that LCUs are automatically provisioned as your service heats up. They rely on a number that represents the maximum weighted amount between connections the load balancer handles, how the load balancer evaluates rules, and how much data is transferred. LCUs are notoriously difficult to calculate. AWS abstracts this into a concept called Load Balancer Capacity Units (LCU) ($0.08 per hour). It uses a combination of a flat hourly charge ($0.0225 per hour) plus a per-minute charge based on the scale of your service. ALB pricing structureĪLB pricing, on the other hand, isn't as easy to suss out. That said, the overall pricing model is easy to understand and simulate. There are some caveats and additional charges when using other features such as Private Link, Gateway Load Balancer endpoints, or Gateway Caching. However, external data transfers are charged at standard EC2 transfer rates, which range from free to $0.09 per GB transferred. Like most services, data transfer within the region is free.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |