Operations 7 min read

Choosing the Right Load Balancing Algorithm: Round Robin, Weighted, Least Connection, and More

This article explains various load‑balancing scheduling methods—including Round Robin, Weighted Round Robin, Least Connection, Weighted Least Connection, Adaptive Agent‑Based balancing, Fixed Weighted, Weighted Response, and Source IP Hash—detailing how each works, their ideal scenarios, and potential drawbacks.

ITFLY8 Architecture Home
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Choosing the Right Load Balancing Algorithm: Round Robin, Weighted, Least Connection, and More

Round Robin

This method distributes incoming requests cyclically across all servers in the pool, assuming they have similar capacity. It works well when servers have comparable performance, but can overload weaker servers if capacities differ.

Weighted Round Robin

This algorithm extends simple round robin by assigning a weight to each server based on its processing capability. A server with higher weight receives more consecutive requests before moving to the next server.

Least Connection

This method routes each new request to the server with the fewest active connections, addressing cases where request duration varies and simple round robin would cause overload on slower servers.

Least Connection Slow Start Time

When a newly added server joins the pool, a slow‑start period limits its connection count, allowing it to ramp up gradually and avoid immediate overload.

Weighted Least Connection

Combines server weights with current connection counts, providing a balanced distribution when servers have different capacities.

Agent Based Adaptive Balancing

The load balancer periodically collects a load metric (0‑99) from each server and adjusts weights dynamically. If load is low, it may fall back to weighted round robin; if high, it uses the adaptive algorithm.

Fixed Weighted

Highest weight is used only when all other servers have low weights; if the top server fails, the next highest takes over, based on configured priority.

Weighted Response

Weights are calculated from server health‑check response times, recomputed roughly every 15 seconds, assuming faster responses indicate higher capacity.

Source IP Hash

Requests are mapped to servers based on a hash of the client’s IP address, ensuring the same client consistently reaches the same server, though it may cause imbalance.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

network operationsRound Robinleast connectionweighted algorithms
ITFLY8 Architecture Home
Written by

ITFLY8 Architecture Home

ITFLY8 Architecture Home - focused on architecture knowledge sharing and exchange, covering project management and product design. Includes large-scale distributed website architecture (high performance, high availability, caching, message queues...), design patterns, architecture patterns, big data, project management (SCRUM, PMP, Prince2), product design, and more.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.