Skip to main content

Load Balancer and Load balancing Algorithms

What is Load Balancer?

Load balancer is a virtual or physical device which distributes network traffic to clustered servers. It improves responsiveness and increases availability of applications.

Load balancer is an interface between client and server which acts as an advisor for the client network and request traffic. Passes the requests to the right server by using various load balancing algorithms.
Which reduces the load on single server and prevents any one application server from becoming a single point of failure. It results applications availability and response time.

Load balancer and Algos

Load Balancing Algorithms

There are lots of techniques and methods for load balancing algorithms. In a smart way handling the request and sending it to the right server. some might be complex algorithms. It is dependent what kind of system architecture you have.
Here are the few techniques.

Round Robin :Round robin passes the request to load balancer by one by one.

Example: if there are 3 load balancer they will get requests one by one. All they will be equally distributed to all servers.

Weighted Round Robin: It is similar as the round robin but servers get rating and as per the ratings servers get requests.
Smart load balancing calculates the load on the server and passes to the right server as per the load.

Least Connections: Servers with the least connection requests gets the next request.

Weighted Least Connections : Servers get rated with numerical value and when both servers have same number of connections rated one gets the priority.

Weighted Response Time: Load balancer calculates the health check response time to determine the fastest response time. At heavy load request are not sent to the particular server. Goes to the next server in the pool.

if you any questions or concerns regarding the blog let me know on

Happy Learning.. 😊


  1. Load shedding and load balancing algorithms are used to improve performance of cloud environment. Great job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. Cracking the coding interview


Post a Comment

Popular posts from this blog

Auto Scaling DynamoDB

Those of you who have worked with the DynamoDB long enough, will be aware of the tricky scaling policies of DynamoDB. It allows user to explicitly set requests per second (units per second, but for simplicity we will just say request per second). User can do so for read as well as write operations. Anytime user can increase or decrease the provision capacity from DynamoDB web console and it will reflect immediately. Sounds all good....... Or not? What if you set provisioned capacity to 50 req per second but load on the server crosses 100 req per second? Requests gets throttled!! Mostly times out. What's worse? This can cause requests getting queued up in your web server. Which can potentially bring your entire server down. What if you set provisioned capacity to 1000 req per second but load on the server is only 100 req per second through out the day? You lose your hard earned money for remaining 900 req per second. What if you set it to 1000 req per sec and then realis

Aws services overview for AWS Certified Solutions Architect – Associate Exam

AWS Services Overview For  AWS Certified Solutions Architect – Associate Exam The AWS Certified Solutions Architect - Associate examination is intended for individuals who perform a solutions architect role and have one or more years of hands-on experience designing available, cost-efficient, fault-tolerant, and scalable distributed systems on AWS. Well, preparing for the exam and taking notes by watching content and reading blogs is kinda like more hurdles. So I am sharing this consolidated short overview of each AWS service which are needed to cover for the exam. AWS Compute services 1)     EC2 - Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers. i.e. its a virtual machine inside the aws platform. It can have physical dedicated machines under EC2. 2)     EC2 container service - Where you can manage/run docker containers at scale. 3)