Zum Inhalt springen
_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
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

Load Balancing algoritmy

19. 09. 2025 1 Min. Lesezeit intermediate

Architektura Pokročilý

Load Balancing algoritmy

Load BalancingNginxHAProxy 3 min čtení

Round Robin, Least Connections, Consistent Hashing a konfigurace v Nginx.

Algoritmy

  • Round Robin — střídání 1-2-3-1-2-3
  • Least Connections — na instanci s nejméně spojeními
  • IP Hash — session persistence
  • Consistent Hashing — pro distribuované cache
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, rychlý (AWS NLB, HAProxy TCP)
  • L7 — HTTP headers, URL routing (Nginx, AWS ALB)

Shrnutí

Least Connections je nejlepší default. Round Robin pro homogenní instance. Vždy konfigurujte health checks.

Potřebujete pomoct s implementací?

Náš tým má zkušenosti s návrhem a implementací moderních architektur. Rádi vám pomůžeme.

Nezávazná konzultace

Teilen:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.