Live data from Hacker News

HAProxy 2.0

haproxy.com

1–10 of 120 posts

Re: HAProxy 2.0

#3

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

It is very usable to proxy other services than HTTP.

Re: HAProxy 2.0

#4

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

The biggest difference a few years ago was HA Proxy could do layer 4 load balancing where nginx was layer 7.

These days I think they’ve grown a lot closer together on capabilities. nginx remains a true web server where HA Proxy is not.

Re: HAProxy 2.0

#5

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

Big difference is that haproxy did not used to support ssl without using something external like stunnel -- nginx basically did it all out of the box and I haven't had a need for haproxy in quite some time now.

Re: HAProxy 2.0

#6
post #3

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

It is very usable to proxy other services than HTTP.

word. It’s been really fun to put in front of games with servers like Cube World.

Re: HAProxy 2.0

#7
post #4

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

The biggest difference a few years ago was HA Proxy could do layer 4 load balancing where nginx was layer 7. These days I think they’ve grown a lot closer together on capabilities. nginx remains a true web server where HA Proxy is not.

Nginx is a network tool with web server capabilities. It can also do pretty much everything you want as long as it's ipv4 or ipv6 over TCP, UDP or HTTP as it, and specifically the openresty distribution are highly scriptable. For example, a recent use case I solved with it was using it as a DNS (53 and DoT) proxy which also provided DoH and filtering.

For more use cases look at Kong, which is almost completely built on openresty.

Re: HAProxy 2.0

#8

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

One advantage is that HAProxy has is the built-in status page. In order to get something similar in Nginx, the last time I've tried (a couple of years ago), the only option was a 3rd party, buggy, plugin.

Re: HAProxy 2.0

#9

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

From what I remember, HAProxy is better at having detailed monitoring metrics, while in the case of nginx a lot of those monitoring features are nginx plus only.

Re: HAProxy 2.0

#10

I've always used Nginx as a proxy, but I've seen HAProxy mentioned, what are some of the benefits of using HAProxy over nginx as a proxy or load balancer?

For me it's the superior HTTP / header rewriting capabilities. With nginx you are more or less restricted to just adding headers the last time I looked into it.

Disclosure: I'm a community contributor to HAProxy and I help maintain the issue tracker on GitHub.

Post reply on HN