---
title: "AWS elb vs. nginx load balancer"
page_name: "AWS ELB vs. NGINX Load Balancer"
type: "blog"
slug: "aws-elb-vs-nginx-load-balancer"
published_at: "2017-10-05"
modified_at: "2025-05-09"
url: "https://www.sumologic.com/blog/aws-elb-vs-nginx-load-balancer"
canonical: "https://www.sumologic.com/blog/aws-elb-vs-nginx-load-balancer"
markdown_url: "https://www.sumologic.com/blog/aws-elb-vs-nginx-load-balancer.md"
lang: "en"
excerpt: "Sumo Logic provides best-in-class cloud monitoring, log management, Cloud SIEM tools, and real-time insights for web and SaaS based apps."
taxonomy_blog_category:
  - "AWS"
---

[ All blogs ](https://www.sumologic.com/blog "blog")[AWS](https://www.sumologic.com/blog/aws)

# AWS ELB vs. NGINX Load Balancer

[Vince Power](#blog-author-block-315)

October 5, 2017

3 min read 

[AWS](https://www.sumologic.com/blog/aws)

##### Table of contents

 

 

 

When building a new application or microservice on AWS, there are several options for handling load balancing in front of the application. In this article, I’ll explain and compare two of the most common and robust options: The built-in AWS Elastic Load Balancer (ELB) or more commonly known as [AWS ELB](https://aws.amazon.com/elasticloadbalancing/) and [NGINX’s load balancer](http://nginx.org/en/docs/http/load_balancing.html).

## Why the Difference Matters

When it comes to choices, choosing your load balancing option may not seem like an important choice, or even be that exciting to some. And it’s true that in most cases, either ELB or NGINX will work.

But there are important differences between them, and the decision you make for handling load balancing will set the tone for other infrastructure decisions going forward. It shapes the architecture of your apps and your deployment patterns. That’s why it’s worth taking time to evaluate both options before committing to one.

## What is AWS Elastic Load Balancing?

AWS defines ELB as follows:

“Elastic Load Balancing automatically distributes your incoming application traffic across multiple targets, such as EC2 instances. It monitors the health of registered targets and routes traffic only to the healthy targets. Elastic Load Balancing supports two types of load balancers: Application Load Balancers and Classic Load Balancers.”

source: AWS What is a Classic Load Balancer.

AWS ELB Benefits

- High performance
- Popular feature on AWS platform
- Commercial support available if desired or required
- Classic Load Balancer can load-balance any TCP traffic
- Application Load Balancers can handle route HTTP traffic based on content
- Can handle SSL Termination
- Seamlessly interacts with other AWS services like CloudFront for content optimization
- Differentiator
- Enforces highly available configuration by requiring a target subnet in two availability zones, and does not require system administration knowledge

### AWS ELB Disadvantages

- Separate Load Balancer instances required to support multiple applications or services
- Limited support for any kind of translation, including port translation

### AWS ELB Costs

These are the minimum costs associated with ELB in a highly available configuration that handles one connection per minute with two kilobytes of data transfer on AWS.

Application Load Balancer would cost $22.88 USD per month

- $0.0225 per Application Load Balancer-hour
- $0.008 per LCU-hour

Classic Load Balancer would cost $18.77 USD

- $0.025 per Elastic Load Balancer-hour
- $0.008 per GB of data processed

## What is NGINX?

The NGINX project describes NGINX as follows:
“NGINX \[engine x\] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites, including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, [NGINX served or proxied 29.10% of the busiest sites in June 2017](https://news.netcraft.com/archives/2017/06/27/june-2017-web-server-survey.html).”

[](https://www.nginx.com/blog/load-balancing-aws-auto-scaling-groups-nginx-plus/)source: nginx Tech Blog.

### NGINX Benefits

- High performance
- Popular, with lots of community support
- Commercial support available if desired or required
- Can load-balance any TCP traffic
- Can handle SSL termination for any connection type
- For HTTP traffic, can handle routing based on content of the request

### NGINX Differentiator

- Supports additional modules, including caching and PHP-FPM
- Much more robust logging available, which can be very helpful at times

### NGINX Disadvantages

- Extra effort and more advanced knowledge required to install, configure, and keep packages updated
- NGINX high availability is not an “out of the box feature” in the free version

### NGINX Costs

These are the minimum costs associated with NGINX in a highly available configuration that handles one connection per minute with two kilobytes of data transfer on AWS.

The software is free, unless you chose to buy NGINX Plus, which starts at $2,500 USD per instance, but it handles high availability deployments seamlessly in addition to commercial support with service level agreements.

Two t1.micro instances sharing an Elastic IP ($0.012 per hour each) plus the data transfer (as much as $0.09 per GB) would cost $18.11 USD per month.

## AWS ELB vs. NGINX

It’s worth noting that although this article compares the two products, in reality, they are often used together. For example, in many stacks, ELB handles public-facing IPs and SSL termination, and balances traffic between multiple NGINX nodes across availability zones, while the NGINX servers handle caching and passing traffic to the actual application/service layer via fpm or as a reverse proxy—so you don’t necessarily need to think of ELB and NGINX as an either-or choice. You may best be served by using both.

| Features | ELB | NGINX Load Balancer |
|---|---|---|
| Commercial Support Available | Yes | Yes |
| Cost | **$0.025 per ELB-hour + $0.008 per GB data** | Free |
| Enforces High Availability by default? | Yes | No (Unless you use NGINX Plus) |
| Traffic Protocol | TCP | TCP |

When singling one out, either ELB or NGINX are reasonable options, and the costs of each are similar when starting out. The main differentiator comes down to selecting whether you want to control the full stack, right down to the operating system, and take advantage of extra features like caching without adding more layers to the application. In that case, NGINX will be a better choice. Alternatively, if you want to simplify how much infrastructure you need to build and maintain by leveraging features that are built into AWS, ELB is your solution.

### Article Tags

- [AWS](https://www.sumologic.com/blog/aws)

Vince Power

Vince Power is a Solution Architect who has a focus on cloud adoption and technology implementations using open source-based technologies. He has extensive experience with core computing and networking (IaaS), identity and access management (IAM), application platforms (PaaS), and continuous delivery.

[](https://www.sumologic.com/feed "RSS Feed")[](https://twitter.com/intent/tweet?text=AWS%20ELB%20vs.%20NGINX%20Load%20Balancer&url=https%3A%2F%2Fwww.sumologic.com%2Fblog%2Faws-elb-vs-nginx-load-balancer "X")[](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.sumologic.com%2Fblog%2Faws-elb-vs-nginx-load-balancer "Facebook")[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.sumologic.com%2Fblog%2Faws-elb-vs-nginx-load-balancer "Linkedin")

[Previous blog

Apache Logs vs. NGINX Logs](https://www.sumologic.com/blog/apache-logs-vs-nginx-logs)[Next blog

Apache Log Analysis with Sumo Logic](https://www.sumologic.com/blog/apache-log-analysis)

People who read this also enjoyed

[  

Eight best practices for a successful cloud migration strategy

June 16, 2026

 

 ](https://www.sumologic.com/blog/best-practices-for-cloud-migration-strategy)[  

OCSF for Security Hub: Sumo Logic and AWS speaking the same language

September 30, 2025

 

 ](https://www.sumologic.com/blog/sumo-logic-aws-ocsf-security-hub)[  

Enhance your cloud security visibility with the updated AWS CloudTrail app

July 16, 2025

 

 ](https://www.sumologic.com/blog/enhance-your-cloud-security-visibility-with-updated-aws-cloudtrail-app)[  

How to create and monitor an AWS Lambda function in Java 11

April 15, 2025

 ](https://www.sumologic.com/blog/how-to-write-aws-lambda-function-in-java8)

[AI Instructions](https://www.sumologic.com/ai-instructions.md)
