The latest insights from the load balancing experts | Loadbalancer.org
  • Support
  • Blog
  • +1 833 274 2566
  • Solutions
  • Services
  • Products
  • Resources
  • Get Started
  • Support
  • Blog
Schedule your demo
  • Solutions
  • Services
  • Products
  • Resources
  • Get Started
  • Support
  • Blog

The latest insights from the load balancing experts | Loadbalancer.org

  • Latest posts
  • By topic
    • How Tos
    • Events
    • Guest Blogs
    • Top Ten Blogs
    • HA Proxy
  • By sector
    • Healthcare
    • Storage
    • Security
    • Print
    • Microsoft
  • How-To's
  • HAProxy
  • High Availability
  • Just for Fun
  • Security
  • Events
  • News
  • Linux
  • Top 10 Blogs
  • Amazon AWS
  • Reviews and Comparisons
  • Healthcare
  • SSL
  • Web Application Firewall (WAF)
  • Case Studies
  • Microsoft Azure
  • Disaster Recovery
  • Direct Server Return (DSR)
  • Global Server Load Balancing (GSLB)
  • Microsoft
  • Microsoft Exchange
  • Print
  • Denial of Service
  • Microsoft Remote Desktop Services
  • Object Storage
  • Web Filters / Proxy
  • Broadcast Media
  • X-Forwarded-For Header (XFF)
  • Guest Blogs
  • VMware
  • Google Cloud Platform (GCP)
  • Nutanix
See more tags

NGINX vs HAProxy — a bit like comparing a 2CV with a Tesla?

22 November 2017 / 3 min read / HAProxy

As I design, build and sell load balancers based on LVS and HAProxy, it’s in my interests to combat the avalanche of NGINX+ marketing propaganda that I've seen over the last year. Let's call it an attempt to skewer fake news.

Why am I writing this now? Well, they got on my last nerve when they rewrote the start of this book about the awesome NGINX web server — which 60 million people use — to be about load balancing. A convenient bit of marketing, given that only a few thousand people use their load balancer.

I won’t say jealousy doesn’t come into it. I wish I had the marketing clout that commercial NGINX+ has with Google, O’Reilly and Gartner.

HAProxy beats NGINX. Hands down.

NGINX is a great open source web server, we all know that. But I think after 15 years in this industry I can justify voicing an honest opinion.

NGINX next to HAProxy looks like a 2CV next to a Tesla: why would you drive a relic when you could have something that’s fast, finely tuned and headed into the future?

Nginx-vs-HAProxy---a-bit-like-comparing-a-2CV-with-a-Tesla-2

(No offense intended to anyone who likes 2CVs. Actually, I quite like the fact a 2CV is so easy to understand and maintain, but it's no Tesla…)

When should you use NGINX for load balancing?

  1. When you are already using NGINX and have basic requirements.
  2. If you've already used it before and are happy with it.
  3. Ummmm....

If you are already using NGINX in your environment and just need a simple load balancer, then go ahead and use NGINX as a reverse proxy as well. It's perfectly functional, reliable and scalable.

But if you need a real load balancer, with high availability, monitoring and full application delivery functionality then use HAProxy.

Why should you use HAProxy for load balancing?

  1. Because everyone else does — the best solution is number one.
  2. It's been tried and tested by thousands of people in all sorts of circumstances.
  3. It has 98% of the functionality you would ever need.
  4. It’s been improved and debugged by a large, active open source community.
  5. It was designed from the start for high performance load balancing.
  6. IPV6, PROXY PROTOCOL, TRANSPARENT PROXY, SSL & SNI, HTTP2, API, LUA Scripting, RDP connection broker, Stick tables, multi-node session replication, DDOS & DOS protection...

I could go on, but I think you get the point!

The problem with commercial NGINX+

Commercial NGINX+ is a great product. The company is well-funded and growing rapidly. It's clearly targeting the cloud and dev ops market (like Avi Networks). I'm sure it has fantastic support — and the product is going through very rapid development and improvement.

But. Commercial NGINX+ has a clear conflict of interest with the open source NGINX load balancer.

They don't make any effort to hide this fact:

"NGINX Plus has exclusive production‑ready features on top of what's available in the open source offering, including session persistence, configuration via API, and active health checks."

The best way to ensure product breadth, depth and quality of a platform is to work with the open source community in a productive and open manner.

NGINX does this for its excellent and widely loved web server - so why intentionally cripple its open source load balancer?

HAProxy does not seem to have this inherent conflict of interest with its commercial offering. In fact, I'm sure Willy Tarreau's investors wish he was slightly less committed to the open source purity of the product.

Do I blame NGINX inventor Igor Sysoev?

Hell no — good luck to him.

But I do reserve the right to speak my mind.

Found in

HAProxy, Reviews and Comparisons, Just for Fun

About the author

Malcolm Turnbull-profile-image
Malcolm Turnbull

Malcolm is the founder of Loadbalancer.org, a company that has generated more than 17 years strong organic growth using Open Source technology sold as packaged hardware & software solutions. He has a tendency to talk way too much and play devils advocate in any conversation.

Read More

Related posts

HAProxy
HAProxy
26 Aug 2020
Loadbalancer.org releases Open Source SNMP MIB and Agent for HAProxy Peter Statham
We’re always keen to give back to the community that writes such great software – our new SNMP agents and MIBs for HAProxy make monitoring your Virtual Services and Real Servers a breeze.

7 min read

Read more
Web Application Firewall (WAF)
Web Application Firewall (WAF)
31 Jul 2020
Secure connections: encrypt, inspect and decrypt traffic when using a WAF Neil Stone
Protect both web servers and users, with this combination of layers and tools.

4 min read

Read more
X-Forwarded-For Header (XFF)
12 Dec 2017
NGINX and X-Forwarded-For Header (XFF) Dave Saunders
The X-Forwarded-For Header is a simple yet powerful solution to a very common problem. I'm not sure why, but for some reason it also seems to cause a lot of confusion. NGINX is often deployed

3 min read

Read more

Get started

Get in touch

Start a conversation about the right solution for your business.

Get in touch

Create your quote

Transparent pricing you can see straight away.

Create your quote

Download now

Try us free for 30 days – see why our customers love us.

Download now

Schedule a virtual meeting with us

Working remotely or from home? Let’s meet on a call or online.

Let's meet

Follow Loadbalancer.org

+1 833 274 2566
  • Company
    • Solutions
    • Services
    • Load balancer
    • Why Loadbalancer.org
    • Blog
    • Professional services
    • Sitemap
  • Load balancer
    • Get a quote
    • Free trial
    • Online demo
  • Resources
    • Manuals
    • Deployment guides
    • Applications
    • White papers
    • Case studies
    • Solutions
  • Support
    • FAQ's
    • Open a ticket
    • Security news
  • Applications
    • Healthcare
    • Storage
    • Print
    • Security
    • Microsoft
The latest insights from the load balancing experts | Loadbalancer.org

The latest insights from the load balancing experts | Loadbalancer.org. All rights reserved

  • Contact Us
  • Terms & Conditions
  • Privacy Policy