It is an load balancing algorithm that is the simplest to implement and commonly used. Round robin should be used when you have clusters with servers, that have identical hardware specifications.
How it works
Let’s say, you have 2 servers and you have 6 clients talking to your application. A load balancer will send 1st request to the 1st server, 2nd to 2nd, 3rd to 1st, 4th to 2nd, 5th to 1st and 6th to 2nd.
Transclude of Round-Robin.excalidraw
Disadvantages
- Using round robin can lead to uneven distribution of load as Server 1 might receive heavier load than Server 2. It gets worse when Server 2 runs on different hardware than Server 1.