Load Balancers and Load Balancers Algorithms

 Load Balancers

  • When all components are in same applications, all request comes to same servers then burden will increase on the same server. 
  • More the requests to the server, then the performance at the server side will be slow so the response time is high for clients.                                                                                                                                  Eg: Youtube, Myntra, Flipkart,.......(lakhs of users will send the request still the response time will be uniform for client) 
  • When burden increased on server it will process the request slowly and some times the server might crash also. 
  • To reduce the burden on the server, people use Load Balancer for the applications. => Load Balancer uses Load Balancing algorithms to balance the load. 
  • Our applications will be deployed in multiple servers and those servers will be connected to Load Balancer. 

How Load Balancer will distribute the load? 

  • Load Balancer will use Load Balancer Algorithms to distribute incoming request 2 servers. 


Load Balancers Algorithms 

  •  Round Robin: In Round Robin fashion the request will be processed in round robin ways(1,2,3, and again it repeats) 
  •  Sticky Session: Based on session object details stored in the server the balancing will happen. 
  •  IP Hashing: By implementing one formula on the server side, serverNo=hash(IP) the balancing will be done on the Load Balancer.

Load Balancer






Comments

Popular posts from this blog

Monolithic Architecture

Advantages and Disadvantages of Monolithic Architecture

Master and Slave Architecture in Jenkins