Scalingrr

Round robin

Definition

Round robin assigns requests to servers in cyclic order (1, 2, 3, 1, 2, 3, …) without considering their current load.

In practice

It is simple, stateless apart from a counter, and spreads requests evenly when servers are identical and requests cost about the same. That makes it the default in many load balancers and DNS setups.

Round robin balances request counts, not work. If some requests take seconds and others milliseconds, or one server is slower, queues build up unevenly. Weighted round robin handles unequal servers; least connections handles unequal requests.

Example

With three servers, requests 1 to 6 go to A, B, C, A, B, C, even if server B is still busy with a slow report from request 2.