What are the Differences between HAProxy and Ngnix in reverse proxy mode?Ordering: 1. nginx 2. varnish 3....
Rejected in 4th interview round citing insufficient years of experience
Is there a window switcher for GNOME that shows the actual window?
How do I locate a classical quotation?
What to do when during a meeting client people start to fight (even physically) with each others?
The bar has been raised
If the Captain's screens are out, does he switch seats with the co-pilot?
"One can do his homework in the library"
Placing subfig vertically
Best approach to update all entries in a list that is paginated?
Things to avoid when using voltage regulators?
What are some noteworthy "mic-drop" moments in math?
Word for a person who has no opinion about whether god exists
Latest web browser compatible with Windows 98
Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?
Why is this plane circling around the Lucknow airport every day?
Is Gradient Descent central to every optimizer?
What Happens when Passenger Refuses to Fly Boeing 737 Max?
Can someone explain what is being said here in color publishing in the American Mathematical Monthly?
Fourth person (in Slavey language)
Why would one plane in this picture not have gear down yet?
MTG: Can I kill an opponent in response to lethal activated abilities, and not take the damage?
They call me Inspector Morse
Is having access to past exams cheating and, if yes, could it be proven just by a good grade?
Why does Captain Marvel assume the people on this planet know this?
What are the Differences between HAProxy and Ngnix in reverse proxy mode?
Ordering: 1. nginx 2. varnish 3. haproxy 4. webserver?Compare HTTP load balacing using HAProxy & NginxWhat is the difference between Load Balancer and Reverse Proxy?Should Nginx be at the front of HAProxy or opposite?Reverse Proxy and the Reponsepfsense + haproxy + stunnel as reverse proxy with load balancing and ssl terminaltionhow to configure HAProxy as a reverse proxy?ftp reverse proxy using haproxyhaproxy reverse proxy and virtual hostDifference between Embedded and Reverse Proxy deployment of a firewallHAproxy simple reverse proxy very slowHAProxy reverse proxy - multiple sites
What are the differences between HAProxy and Nginx when it comes to their abilities as a reverse proxy?
nginx load-balancing reverse-proxy haproxy
add a comment |
What are the differences between HAProxy and Nginx when it comes to their abilities as a reverse proxy?
nginx load-balancing reverse-proxy haproxy
add a comment |
What are the differences between HAProxy and Nginx when it comes to their abilities as a reverse proxy?
nginx load-balancing reverse-proxy haproxy
What are the differences between HAProxy and Nginx when it comes to their abilities as a reverse proxy?
nginx load-balancing reverse-proxy haproxy
nginx load-balancing reverse-proxy haproxy
edited Feb 3 '11 at 15:23
Kyle Brandt♦
66.2k61262412
66.2k61262412
asked Feb 2 '11 at 2:43
Quintin ParQuintin Par
1,20973458
1,20973458
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
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 (SSL added from 1.5-dev12)
- More rate limiting options
- The author answers questions here on Server Fault ;-)
Nginx:
- Supports SSL directly
- Is also a caching server
At Stack Overflow we mainly use HAProxy with nginx for SSL offloading so HAProxy is my recommendation.
add a comment |
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
3
The newest (September 2012) unstable builds of HAProxy now support SSL. (potentially removing my need to run nginx)
– Joel K
Oct 1 '12 at 0:12
add a comment |
If needed only for load balancing HA proxy is better. But combining both nginix and HA proxy can be more useful, as nginix is fast in providing static content, it will serve all request for static data and then send all request to HA proxy which serve as load balancer and send request to web server to serve request by balancing load.
add a comment |
2019 update:
They are both stable and mature products. HAProxy is dedicated to load balancing and is better at that, whereas nginx is a webserver that can act as a load balancer.
Both:
- HTTPS support
- Websocket support
- Stable, mature and very efficient products
- Can handle 10k connections with minimal or no tuning
HAProxy:
- TCP, TCP-SSL, HTTP and HTTPS load balancing
- More flexibility on health checks and failover conditions
- Basic caching (v1.8 - 2017)
- Customizable log format, to import access logs to kibana/splunk/graylog
- Detailed status page, to see active requests and servers status
- Exportable metrics, to integrate with monitoring solutions (graphite/prometheus/datadog)
- More high-performance oriented. Better indicated to handle 100k connections or 40 GbE interfaces.
Nginx:
- HTTP and HTTPS load balancing (TCP - UDP in paid edition)
- More flexibility on caching
- Customizable log format, to import access logs to kibana/splunk/graylog
- No status page (paid edition only)
- No exportable metrics (paid edition only)
- Can serve local files
- Can run CGI/FastCGI applications
HAProxy is a free software, fully open source. They make money by selling hardware appliance with HAProxy pre-installed.
Nginx is open core and many features are only available in the paid edition. Notably, it's lacking a status page and monitoring metrics that is a big NO NO to operate a load balancer.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f229945%2fwhat-are-the-differences-between-haproxy-and-ngnix-in-reverse-proxy-mode%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
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 (SSL added from 1.5-dev12)
- More rate limiting options
- The author answers questions here on Server Fault ;-)
Nginx:
- Supports SSL directly
- Is also a caching server
At Stack Overflow we mainly use HAProxy with nginx for SSL offloading so HAProxy is my recommendation.
add a comment |
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 (SSL added from 1.5-dev12)
- More rate limiting options
- The author answers questions here on Server Fault ;-)
Nginx:
- Supports SSL directly
- Is also a caching server
At Stack Overflow we mainly use HAProxy with nginx for SSL offloading so HAProxy is my recommendation.
add a comment |
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 (SSL added from 1.5-dev12)
- More rate limiting options
- The author answers questions here on Server Fault ;-)
Nginx:
- Supports SSL directly
- Is also a caching server
At Stack Overflow we mainly use HAProxy with nginx for SSL offloading so HAProxy is my recommendation.
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 (SSL added from 1.5-dev12)
- More rate limiting options
- The author answers questions here on Server Fault ;-)
Nginx:
- Supports SSL directly
- Is also a caching server
At Stack Overflow we mainly use HAProxy with nginx for SSL offloading so HAProxy is my recommendation.
edited Sep 29 '12 at 11:57
rmalayter
3,3951423
3,3951423
answered Feb 3 '11 at 15:23
Kyle Brandt♦Kyle Brandt
66.2k61262412
66.2k61262412
add a comment |
add a comment |
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
3
The newest (September 2012) unstable builds of HAProxy now support SSL. (potentially removing my need to run nginx)
– Joel K
Oct 1 '12 at 0:12
add a comment |
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
3
The newest (September 2012) unstable builds of HAProxy now support SSL. (potentially removing my need to run nginx)
– Joel K
Oct 1 '12 at 0:12
add a comment |
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
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
edited Apr 13 '17 at 12:14
Community♦
1
1
answered Feb 3 '11 at 5:49
Joel KJoel K
4,77712532
4,77712532
3
The newest (September 2012) unstable builds of HAProxy now support SSL. (potentially removing my need to run nginx)
– Joel K
Oct 1 '12 at 0:12
add a comment |
3
The newest (September 2012) unstable builds of HAProxy now support SSL. (potentially removing my need to run nginx)
– Joel K
Oct 1 '12 at 0:12
3
3
The newest (September 2012) unstable builds of HAProxy now support SSL. (potentially removing my need to run nginx)
– Joel K
Oct 1 '12 at 0:12
The newest (September 2012) unstable builds of HAProxy now support SSL. (potentially removing my need to run nginx)
– Joel K
Oct 1 '12 at 0:12
add a comment |
If needed only for load balancing HA proxy is better. But combining both nginix and HA proxy can be more useful, as nginix is fast in providing static content, it will serve all request for static data and then send all request to HA proxy which serve as load balancer and send request to web server to serve request by balancing load.
add a comment |
If needed only for load balancing HA proxy is better. But combining both nginix and HA proxy can be more useful, as nginix is fast in providing static content, it will serve all request for static data and then send all request to HA proxy which serve as load balancer and send request to web server to serve request by balancing load.
add a comment |
If needed only for load balancing HA proxy is better. But combining both nginix and HA proxy can be more useful, as nginix is fast in providing static content, it will serve all request for static data and then send all request to HA proxy which serve as load balancer and send request to web server to serve request by balancing load.
If needed only for load balancing HA proxy is better. But combining both nginix and HA proxy can be more useful, as nginix is fast in providing static content, it will serve all request for static data and then send all request to HA proxy which serve as load balancer and send request to web server to serve request by balancing load.
answered Oct 16 '12 at 15:40
MiteshMitesh
411
411
add a comment |
add a comment |
2019 update:
They are both stable and mature products. HAProxy is dedicated to load balancing and is better at that, whereas nginx is a webserver that can act as a load balancer.
Both:
- HTTPS support
- Websocket support
- Stable, mature and very efficient products
- Can handle 10k connections with minimal or no tuning
HAProxy:
- TCP, TCP-SSL, HTTP and HTTPS load balancing
- More flexibility on health checks and failover conditions
- Basic caching (v1.8 - 2017)
- Customizable log format, to import access logs to kibana/splunk/graylog
- Detailed status page, to see active requests and servers status
- Exportable metrics, to integrate with monitoring solutions (graphite/prometheus/datadog)
- More high-performance oriented. Better indicated to handle 100k connections or 40 GbE interfaces.
Nginx:
- HTTP and HTTPS load balancing (TCP - UDP in paid edition)
- More flexibility on caching
- Customizable log format, to import access logs to kibana/splunk/graylog
- No status page (paid edition only)
- No exportable metrics (paid edition only)
- Can serve local files
- Can run CGI/FastCGI applications
HAProxy is a free software, fully open source. They make money by selling hardware appliance with HAProxy pre-installed.
Nginx is open core and many features are only available in the paid edition. Notably, it's lacking a status page and monitoring metrics that is a big NO NO to operate a load balancer.
add a comment |
2019 update:
They are both stable and mature products. HAProxy is dedicated to load balancing and is better at that, whereas nginx is a webserver that can act as a load balancer.
Both:
- HTTPS support
- Websocket support
- Stable, mature and very efficient products
- Can handle 10k connections with minimal or no tuning
HAProxy:
- TCP, TCP-SSL, HTTP and HTTPS load balancing
- More flexibility on health checks and failover conditions
- Basic caching (v1.8 - 2017)
- Customizable log format, to import access logs to kibana/splunk/graylog
- Detailed status page, to see active requests and servers status
- Exportable metrics, to integrate with monitoring solutions (graphite/prometheus/datadog)
- More high-performance oriented. Better indicated to handle 100k connections or 40 GbE interfaces.
Nginx:
- HTTP and HTTPS load balancing (TCP - UDP in paid edition)
- More flexibility on caching
- Customizable log format, to import access logs to kibana/splunk/graylog
- No status page (paid edition only)
- No exportable metrics (paid edition only)
- Can serve local files
- Can run CGI/FastCGI applications
HAProxy is a free software, fully open source. They make money by selling hardware appliance with HAProxy pre-installed.
Nginx is open core and many features are only available in the paid edition. Notably, it's lacking a status page and monitoring metrics that is a big NO NO to operate a load balancer.
add a comment |
2019 update:
They are both stable and mature products. HAProxy is dedicated to load balancing and is better at that, whereas nginx is a webserver that can act as a load balancer.
Both:
- HTTPS support
- Websocket support
- Stable, mature and very efficient products
- Can handle 10k connections with minimal or no tuning
HAProxy:
- TCP, TCP-SSL, HTTP and HTTPS load balancing
- More flexibility on health checks and failover conditions
- Basic caching (v1.8 - 2017)
- Customizable log format, to import access logs to kibana/splunk/graylog
- Detailed status page, to see active requests and servers status
- Exportable metrics, to integrate with monitoring solutions (graphite/prometheus/datadog)
- More high-performance oriented. Better indicated to handle 100k connections or 40 GbE interfaces.
Nginx:
- HTTP and HTTPS load balancing (TCP - UDP in paid edition)
- More flexibility on caching
- Customizable log format, to import access logs to kibana/splunk/graylog
- No status page (paid edition only)
- No exportable metrics (paid edition only)
- Can serve local files
- Can run CGI/FastCGI applications
HAProxy is a free software, fully open source. They make money by selling hardware appliance with HAProxy pre-installed.
Nginx is open core and many features are only available in the paid edition. Notably, it's lacking a status page and monitoring metrics that is a big NO NO to operate a load balancer.
2019 update:
They are both stable and mature products. HAProxy is dedicated to load balancing and is better at that, whereas nginx is a webserver that can act as a load balancer.
Both:
- HTTPS support
- Websocket support
- Stable, mature and very efficient products
- Can handle 10k connections with minimal or no tuning
HAProxy:
- TCP, TCP-SSL, HTTP and HTTPS load balancing
- More flexibility on health checks and failover conditions
- Basic caching (v1.8 - 2017)
- Customizable log format, to import access logs to kibana/splunk/graylog
- Detailed status page, to see active requests and servers status
- Exportable metrics, to integrate with monitoring solutions (graphite/prometheus/datadog)
- More high-performance oriented. Better indicated to handle 100k connections or 40 GbE interfaces.
Nginx:
- HTTP and HTTPS load balancing (TCP - UDP in paid edition)
- More flexibility on caching
- Customizable log format, to import access logs to kibana/splunk/graylog
- No status page (paid edition only)
- No exportable metrics (paid edition only)
- Can serve local files
- Can run CGI/FastCGI applications
HAProxy is a free software, fully open source. They make money by selling hardware appliance with HAProxy pre-installed.
Nginx is open core and many features are only available in the paid edition. Notably, it's lacking a status page and monitoring metrics that is a big NO NO to operate a load balancer.
answered 9 mins ago
user5994461user5994461
1,4121020
1,4121020
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f229945%2fwhat-are-the-differences-between-haproxy-and-ngnix-in-reverse-proxy-mode%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown