HAProxy vs. Nginx for load balancing (2016)
I'm pretty much in love with Nginx' simplicity and capabilities as a swiss army knife for all kinds of HTTP magic.<p>I had some doubts about Nginx' direction and feature development, but most really great features (like stream proxy with SNI support) make their way into the open source release. Built in monitoring sucks though. There are options for better monitoring your requests with Prometheus.<p>This project implements prometheus metrics using Lua scripting inside Nginx:<p><a href="https://github.com/knyar/nginx-lua-prometheus" rel="nofollow">https://github.com/knyar/nginx-lua-prometheus</a><p>This project is indended as a sidecar service to nginx and receives access logs and timings using syslog protocol (Nginx has a native syslog over UDP capabilities) so no scripting inside Nginx is necessary:<p><a href="https://github.com/markuslindenberg/nginx_request_exporter" rel="nofollow">https://github.com/markuslindenberg/nginx_request_exporter</a><p>(I'm the author of this exporter)