Re:Dynamic Configuration with the HAProxy Runtime API
by markonen on Tuesday December 05, 2017 @03:33PM
(#15855548)
Cloudflare is (among other things) a CDN/cache. haproxy does not cache.
Re:Dynamic Configuration with the HAProxy Runtime API
by mcarney23 on Tuesday December 05, 2017 @04:44PM
(#15856317)
It does now !
Re:Dynamic Configuration with the HAProxy Runtime API
by burntrelish1273 on Tuesday December 05, 2017 @10:51PM
(#15858316)
I wouldn't use it. Use the right tool for the right job.
Nginx is good at caching but Varnish is often better.
HAProxy is far better suited to providing load-balanced HA. Regarding this article, this API makes is ideal to dynamically-reconfigure HAproxy, adding and removing servers on-the-fly, which is super-useful in production.
Re:Dynamic Configuration with the HAProxy Runtime API
by manigandham on Tuesday December 05, 2017 @09:41PM
(#15858076)
Only at the most minimal layer, meant for favicon.ico requests and the like. They are explicit about not becoming a cache or web server.
Re:Dynamic Configuration with the HAProxy Runtime API
by liulantao on Tuesday December 05, 2017 @09:48PM
(#15858103)
Nginx has widely used modules, business logic can be run in the same worker process with proxy. And it is easy to find enough developers to develop a relatively complex business support system based on nginx module system.
Haproxy itself is efficient as a proxy, however, developing a business system requires a lot of interaction between proxy and the business control processes.
Re:Dynamic Configuration with the HAProxy Runtime API
by tyingq on Tuesday December 05, 2017 @03:00PM
(#15855244)
Probably just timing. Nginx had support for things like ssl termination, http/2 earlier than haproxy.
Re:Dynamic Configuration with the HAProxy Runtime API
by ianamartin on Wednesday December 06, 2017 @03:49AM
(#15859607)
I'm not sure why companies with a budget would use it, but if you want health-checks without paying, you use HAProxy. nginx excludes this for the open source version. Which really makes me unhappy. But so it goes.
I use both in my applications. nginx for reverse proxy on my python boxes and HAProxy to manage all of them.
Re:Dynamic Configuration with the HAProxy Runtime API
by nailer on Tuesday December 05, 2017 @04:03PM
(#15855943)
nginx has more development activity. Eg, nginx has had http/2 support for a couple of years, HAProxy has for a couple of days. HAProxy is excellent - even it's stats module costs a couple of thousand bucks for a proprietary module per instance on nginx - but nginx seems to move faster.
It always seems to me as if haproxy was the superior tool with worse UX/configurability than nginx.