Static vs Dynamic Load Balancing
A load balancer is a device that acts as a reverse proxy and distributes network or application traffic across a number of servers. Load balancing usually involves dedicated software or hardware, such as a multilayer switch or a Domain Name Service server process.
Load Balancing can be classified into two types based on the behavior of the algorithm:
- Static Load Balancing: Static load balancing is the method of dividing the incoming load on a server using algorithms that have prior information about the existing servers in the distributed network. These load balancing schemes have a pre-defined load schedule that determines a fixed amount of load that can be shed on other systems.
- Dynamic Load Balancing: It is a more versatile scheme of load balancing which can dynamically identify the amount of load that needs to be shed during runtime and which system should bear the load.
Difference between Static and Dynamic Load Balancing:
|Sr. No.||Static Load Balancing||Dynamic Load Balancing|
|1.||Designed for the system with low fluctuation in incoming load.||Designed for the system with high fluctuation in incoming load.|
|2.||Traffic is equally divided among the servers.||Traffic is dynamically divided among the servers.|
|3.||It requires deeper information about available system resources.||It does not necessarily need deeper information about system resources beforehand.|
|4.||It does not require real-time communication with the servers.||It requires real-time communication actively with the servers.|
|5.||The allocated load cannot be retransferred to other servers during runtime.||The allocated load can be retransferred among servers to reduce the under utilization of resources.|
|6.||Example: Round Robin algorithm for load balancing.||Example: Least Connection algorithm for load balancing.|