How Load Balancer Works?
Lets understand how Load Balancer works through the above discussed example:
To solve the above issue and to distribute the number of requests we can add a load balancer in front of the web servers and allow our services to handle any number of requests by adding any number of web servers in the network.
- We can spread the request across multiple servers.
- For some reason, if one of the servers goes offline the service will be continued.
- Also, the latency on each request will go down because each server is not bottlenecked on RAM/Disk/CPU anymore.
Load balancers minimize server response time and maximize throughput. Load balancer ensures high availability and reliability by sending requests only to online servers Load balancers do continuous health checks to monitor the server’s capability of handling the request. Depending on the number of requests or demand load balancers add or remove the number of servers.
What is Load Balancer & How Load Balancing works?
Load Balancer is defined as a networking device or software application that distributes and balances the incoming traffic among the servers to provide high availability, efficient utilization of servers, and high performance. A load balancer works as a “traffic cop” sitting in front of your server and routing client requests across all servers. It simply distributes the set of requested operations (database write requests, cache queries) effectively across multiple servers and ensures that no single server bears too many requests.
Important Topics for Load Balancer
- What is a Load Balancer?
- What will happen if there is NO Load Balancer?
- Key characteristics of Load Balancers:
- How Load Balancer Works?
- Types of Load Balancers
- Load Balancing Algorithms
- Benefits of using a Load Balancer
- Cons/Drawbacks of Load Balancers:
- Conclusion