NGINX started as a web server but excels at load balancing. It's often the first choice when you need both serving and balancing.
upstream backend {
least_conn;
server 192.168.1.10:8080;
server 192.168.1.11:8080;
}
server {
listen 80;
location / {
proxy_pass http://backend;
}
}
NGINX supports round-robin, least connections, IP hash, and weighted distribution. NGINX Plus (commercial) adds health checks, session persistence, and dynamic reconfiguration.