Skip to content
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN DE
Let's talk

Load Balancing Algorithms

19. 09. 2025 1 min read intermediate

Architecture Intermediate

Load Balancing Algorithms

Load BalancingNginxHAProxy 3 min read

Round Robin, Least Connections, Consistent Hashing, and Nginx configuration.

Algorithms

  • Round Robin — rotation 1-2-3-1-2-3
  • Least Connections — routes to the instance with fewest connections
  • IP Hash — session persistence
  • Consistent Hashing — for distributed caches
upstream backend {
    least_conn;
    server 10.0.0.1:8080 weight=3;
    server 10.0.0.2:8080 weight=2;
    server 10.0.0.3:8080 backup;
}

L4 vs L7

  • L4 — IP/port, fast (AWS NLB, HAProxy TCP)
  • L7 — HTTP headers, URL routing (Nginx, AWS ALB)

Summary

Least Connections is the best default. Round Robin for homogeneous instances. Always configure health checks.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS team

We build core systems and AI agents that keep operations running. 15 years of experience with enterprise IT.