Skip to main content

Command Palette

Search for a command to run...

Load balancer

Published
•1 min read•View as Markdown
A

Software Engineer

Load balancer

  • A load balancer is a device/software that distributes network traffic or client requests across a number of servers efficiently.

  • Ensures high availability and reliability by sending requests only to servers that are online.

  • Provides the ability to scale (add or remove servers depending on demand)

  • Used as a reverse proxy. Eg: Nginx LB

image.png

Algorithms used for load balancing:

  • Round-robin
  • IP Hash
  • Least connections etc.

    Round robin:

    • Famous algorithm used for load balancing.

    • The first request is sent to the first server, then the next to the second, and so on down to the last. Then it is started again, assigning the next request to the first server, and so on. Requests are distributed sequentially.

    • This algorithm can be weighted such that the most powerful units receive the largest number of requests and receive them first.

=================

The End!

Linkedin github šŸš€ā˜ļøšŸ–¤

More from this blog

Akshay R R | Engineering, Startups

20 posts

Software engineering concepts in a concise manner! Documenting my learning journey!