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:
||Static Load Balancing
||Dynamic Load Balancing
||Designed for the system with low fluctuation in incoming load.
||Designed for the system with high fluctuation in incoming load.
||Traffic is equally divided among the servers.
||Traffic is dynamically divided among the servers.
||It requires deeper information about available system resources.
||It does not necessarily need deeper information about system resources beforehand.
||It does not require real-time communication with the servers.
||It requires real-time communication actively with the servers.
||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.
||Example: Round Robin algorithm for load balancing.
||Example: Least Connection algorithm for load balancing.
Unlock the Power of Placement Preparation!
Feeling lost in OS, DBMS, CN, SQL, and DSA chaos? Our Complete Interview Preparation
Course is the ultimate guide to conquer placements. Trusted by over 100,000+ geeks, this course is your roadmap to interview triumph.
Ready to dive in? Explore our Free Demo Content and join our Complete Interview Preparation