skip to Main Content

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?

2

Answers


  1. EC2:

    1. Maintaining is up to you (updates, security etc.).
    2. Autoscaling is up to you.
    3. Pricing is {your_desired_instance_type_cost} * 24h * 31 days (1month) PLUS:
    • Data-transfer costs
    • Volumes costs

    ELB:

    1. Don’t care about maintaining.
    2. Don’t care about autoscaling.
    3. 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.

    Login or Signup to reply.
  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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search