Load Balancers

Last updated

What is Load Balancers?

Load balancers distribute incoming client requests to computing resources such as application servers and databases. In each case, the load balancer returns the response from the computing resource to the appropriate client. Load balancers are effective at:

  • Preventing requests from going to unhealthy servers
  • Preventing overloading resources
  • Helping to eliminate a single point of failure

Load balancers can be implemented with hardware (expensive) or with software such as HAProxy. Additional benefits include:

  • SSL termination - Decrypt incoming requests and encrypt server responses so backend servers do not have to perform these potentially expensive operations
    • Removes the need to install X.509 certificates on each server
  • Session persistence - Issue cookies and route a specific client's requests to same instance if the web apps do not keep track of sessions

Disadvantages of load balancer

  • The load balancer can become a performance bottleneck if it does not have enough resources or if it is not configured properly.
  • Introducing a load balancer to help eliminate a single point of failure results in increased complexity.
  • A single load balancer is a single point of failure, configuring multiple load balancers further increases complexity.

Free resources to learn Load Balancers

More in stage 11: Load Balancers

Load Balancers: common questions

Can I learn Load Balancers in Hindi?

This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Load Balancers in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.

Is this Load Balancers tutorial for beginners?

It is lesson 31 of 147 in the free System Design roadmap, in stage 11, Load Balancers. If you are new to System Design, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.

Still confused? Ask me