'Pricing for AWS Application Load Balancer VS Nginx load balancer setup on Amazon EC2 Instance
My question here is either I have to go for AWS Application load balancer or nginx or haproxy load balancer setup on AWS EC2 instance? I am more concern about pricing and can not afford downtime.
Need to make up a couple of load scenarios - low, medium, high and work out a price point for each in aws appication load balancer vs nginx on ec2 instance.
Can anyone suggest best use cases based on your experience?
Solution 1:[1]
EC2:
- Maintaining is up to you (updates, security etc.).
- Autoscaling is up to you.
- Pricing is {your_desired_instance_type_cost} * 24h * 31 days (1month) PLUS:
- Data-transfer costs
- Volumes costs
ELB:
- Don't care about maintaining.
- Don't care about autoscaling.
- Base Pricing is 0.0252$ * 24h * 31 days (1month) ~= 18,74$/month PLUS:
- Data-transfer costs
- LCU (Load Balancer Capacity Units) cost
- Additional costs for 10+ load balancer rules
For ELB calculations you can try this AWS ELB calculator
For EC2 + Nginx you can use AWS Pricing Calculator
From my experience - go for ELB. You set this up once and don't even care about anything else. It's easy to configure (IaC), it has 99.95% uptime (you won't get similar with ec2+nginx), and it's not so expensive. Additionally you can attach AWS WAF to ELB now, and you can easly point your CloudFront distribution to ELB.
Solution 2:[2]
I think that more traffic should be directly proportional to more money ingress by your site, so don't be afraid of the traffic ingress. Of course, you will pay more in AWS but you will have fewer headaches when a problem comes and downtime. Just imagine you put all of your efforts now. Then the design complexity increases because of traffic volume. After that you think "well at this point I think I need some help" ...but you are at EC2, more difficult to scale without downtime. Also may be your knowledge about devops doesnt let you solve the problem quickly.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Yupik |
Solution 2 | Jonathan Orrego |