0
0
HLDsystem_design~5 mins

Load balancing algorithms (round robin, least connections) in HLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the Round Robin load balancing algorithm?
Round Robin distributes incoming requests evenly across all servers in a fixed cyclic order, assigning each new request to the next server in the list.
Click to reveal answer
beginner
How does the Least Connections load balancing algorithm work?
Least Connections sends each new request to the server with the fewest active connections, helping balance load dynamically based on current server usage.
Click to reveal answer
intermediate
Which load balancing algorithm is better for servers with uneven request processing times?
Least Connections is better because it considers current load, sending requests to less busy servers, unlike Round Robin which ignores server load.
Click to reveal answer
intermediate
What is a potential downside of Round Robin load balancing?
Round Robin can overload a slow server because it does not consider server capacity or current load, leading to uneven performance.
Click to reveal answer
intermediate
Why might Least Connections load balancing require more overhead than Round Robin?
Because it must track the number of active connections on each server in real-time, which adds complexity and resource usage.
Click to reveal answer
Which load balancing algorithm assigns requests in a fixed order without considering server load?
ALeast Connections
BWeighted Round Robin
CRandom
DRound Robin
Least Connections algorithm directs traffic to which server?
AServer chosen randomly
BServer with the most CPU power
CServer with the fewest active connections
DServer with the highest memory
What is a key advantage of Least Connections over Round Robin?
ABalances load based on current server usage
BDoes not require tracking server state
CAlways faster response time
DSimpler to implement
Which algorithm might cause uneven load if servers have different speeds?
ARound Robin
BWeighted Least Connections
CLeast Connections
DIP Hash
What extra data does Least Connections need to maintain?
AServer IP addresses
BNumber of active connections per server
CServer uptime
DRequest size
Explain how Round Robin and Least Connections load balancing algorithms differ in handling incoming requests.
Think about whether the algorithm tracks server usage or not.
You got /4 concepts.
    Describe scenarios where Least Connections would be preferred over Round Robin for load balancing.
    Consider how server load affects performance.
    You got /4 concepts.