Load Balancing Basics
CONCEPTS:Load Balancing
Question Variations
- "What is a load balancer, and why is it critical for high-availability systems?"
- "Compare the 'Round Robin' and 'Least Connections' load balancing algorithms."
- "What is a 'Sticky Session,' and what are the trade-offs of using them?"
- "Explain the difference between Layer 4 (Transport) and Layer 7 (Application) load balancing."
Why This Is Asked
This is a fundamental System Design question. It tests whether a candidate knows how to scale an application horizontally and how to ensure the system remains available even if individual servers fail.
Key Concepts
- Horizontal Scaling: Adding more machines instead of bigger machines.
- High Availability (HA): Removing single points of failure.
- Algorithms: Knowing the trade-offs between Round Robin, Least Connections, and IP Hash.
- Session Persistence (Sticky Sessions): The challenge of keeping a user on the same server.
Question Variations
- “What is a load balancer, and why is it critical for high-availability systems?”
- “Compare the ‘Round Robin’ and ‘Least Connections’ load balancing algorithms.”
- “What is a ‘Sticky Session,’ and what are the trade-offs of using them?”
- “Explain the difference between Layer 4 (Transport) and Layer 7 (Application) load balancing.”