What are the differences between HAProxy and Nginx when it comes to their abilities as a reverse proxy?

link|improve this question

56% accept rate
feedback

3 Answers

up vote 5 down vote accepted

HAProxy is really just a load balancer/reverse proxy. Nginx is a Webserver that can also function as a reverse proxy.

Here are some differences:

HAProxy:

  • Does TCP as well as HTTP proxying
  • More rate limiting options
  • The author answers questions here on Server Fault ;-)

Nginx:

  • Supports SSL directly
  • Is also a caching server
  • No support for HTTP/1.1 features. If you need keep-alive support for your web application HAProxy is likely the choice for you.

At Stack Overflow we mainly yse HAProxy with nginx for SSL offloading so HAProxy is my recommendation.

link|improve this answer
feedback

I use nginx to frontend HAProxy, but only for SSL termination.

HAProxy is a much more tunable and manageable load balancer (in my experience).

I also incorporate Varnish for static object caching. (as a specific backend of HAProxy)

See this Server Fault question for more info. Ordering nginx/varnish/haproxy

link|improve this answer
feedback

nginix. Because there is no Haxproxy.

But seriously I think Haproxy makes a better load balancer while nginix would make a better caching server. If you only want availability haproxy is your choice. If you want to increase performance go with nginix.

link|improve this answer
Haxproxy sounds better somehow :-) – Joris Feb 3 '11 at 8:14
I think you mean "nginx" (engine x), not "nginix" – Jesper Mortensen Feb 8 '11 at 0:38
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.