SlideShare a Scribd company logo
1 of 26
Load Balancing
Algorithms
Aditya Kamat
Load Balancing?
Load Balancing
Algorithms => {}
1. Random
Random algorithm:
โ€ข Can you โ€œtruly randomlyโ€ distribute load?
โ€ข It is simple to implement and scales well when you have a
distributed load balancer setup.
โ€ข Latency is not being accounted for.
โ€ข Servers which are underperforming can have more requests
being sent to them.
2. Round Robin
1 1
1
2 2
2
3 3
3
Round Robin
algorithm
โ€ข Guarantees same number of requests
to all servers.
โ€ข We again face the same latency
problem.
โ€ข Does not scale well for distributed
Load balancers as the logic of where to
start from needs to be statically
hardcoded.
โ€ข What if the backend servers have
different configs?
3. Weighted Round Robin
Weights
1
2
3
1
1
2 23
3
456
7
4
56
7
Weighted
Round Robin
algorithm
โ€ข Servers can take load based on their
H/W configs.
โ€ข Can introduce another service which
check for latency and update the
weights dynamically.
โ€ข The weights are present on the load
balancer and not the servers, so if it is
distributed, all need to be in sync.
โ€ข Also called โ€œJoin shortest queueโ€
algorithm.
4. Least connections
Served Requests
1
1
2 23
3
456 7
4
5
6
7
1
3
Least
Connections
algorithm
โ€ข Routes requests considering the
current load on each servers.
โ€ข In a distributed setup, the LBs should
be in sync about the active
connections on each server.
โ€ข We can have race condition of all LBs
sending to the same server if all
requests come to the LBs at once.
5. Least connections with
randomness
Each LB, when receives a request
chooses a set of random servers.
Then, the least connection algorithm
is applied to those servers and the
backend server is chosen for the
request.
Least
connections
with
randomness
โ€ข We are trying to solve the problem of race
condition in Least connections algorithm by using
this approach.
โ€ข This works only in a distributed LB setup.
โ€ข Adds one more layer of complexity to choose
random set of servers.
โ€ข The number of random servers that need to be
chosen needs to be hardcoded in each LB. This
number cannot be too close to the actual number
of servers ? And cannot be too less as well?
โ€ข All the techniques that we have looked at so
far assume that the application is stateless
and any of the servers can serve requests.
โ€ข Maintaining persistent connections is a
much more difficult task and shall be
discussed in the future videos.
โ€ข Join idle queue algorithm โ€“ Link
โ€ข Source IP hash algorithm, based on consistent hashing โ€“
Link1, Link2
โ€ข This is used for maintaining persistent connections.
โ€ข Global Server Load Balancing โ€“ Link
Further reading:
References
โ€ข Comparison between basic LB algorithms: Link
โ€ข Tyler McMullen - Load Balancing is Impossible: Link
โ€ข โ€œBalls into Binsโ€ โ€” A Simple and Tight Analysis - Link
โ€ข The Power of Two Choices in Randomized Load Balancing - Link

More Related Content

What's hot

What's hot (20)

Load balancing
Load balancingLoad balancing
Load balancing
ย 
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVMHypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
Hypervisors and Virtualization - VMware, Hyper-V, XenServer, and KVM
ย 
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs TomcatWebSphere App Server vs JBoss vs WebLogic vs Tomcat
WebSphere App Server vs JBoss vs WebLogic vs Tomcat
ย 
Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18Kubernetes Networking - Sreenivas Makam - Google - CC18
Kubernetes Networking - Sreenivas Makam - Google - CC18
ย 
Design Best Practices for High Availability in Load Balancing
Design Best Practices for High Availability in Load BalancingDesign Best Practices for High Availability in Load Balancing
Design Best Practices for High Availability in Load Balancing
ย 
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
ย 
Lecture5 virtualization
Lecture5 virtualizationLecture5 virtualization
Lecture5 virtualization
ย 
Distributed System ppt
Distributed System pptDistributed System ppt
Distributed System ppt
ย 
Cisco Switch Security
Cisco Switch SecurityCisco Switch Security
Cisco Switch Security
ย 
Prometheus monitoring
Prometheus monitoringPrometheus monitoring
Prometheus monitoring
ย 
Cloud Security Mechanisms
Cloud Security MechanismsCloud Security Mechanisms
Cloud Security Mechanisms
ย 
Galera Cluster Best Practices for DBA's and DevOps Part 1
Galera Cluster Best Practices for DBA's and DevOps Part 1Galera Cluster Best Practices for DBA's and DevOps Part 1
Galera Cluster Best Practices for DBA's and DevOps Part 1
ย 
Wi fi protected access
Wi fi protected accessWi fi protected access
Wi fi protected access
ย 
Why kubernetes matters
Why kubernetes mattersWhy kubernetes matters
Why kubernetes matters
ย 
CloudStack Networking
CloudStack NetworkingCloudStack Networking
CloudStack Networking
ย 
Latest performance changes by Scylla - Project optimus / Nolimits
Latest performance changes by Scylla - Project optimus / Nolimits Latest performance changes by Scylla - Project optimus / Nolimits
Latest performance changes by Scylla - Project optimus / Nolimits
ย 
Middleware Technologies ppt
Middleware Technologies pptMiddleware Technologies ppt
Middleware Technologies ppt
ย 
Ipsec
IpsecIpsec
Ipsec
ย 
Cloud Computing Architecture
Cloud Computing ArchitectureCloud Computing Architecture
Cloud Computing Architecture
ย 
Hypervisor
HypervisorHypervisor
Hypervisor
ย 

Similar to Load Balancing Algorithms - Which one to choose?

ACE - Comcore
ACE - ComcoreACE - Comcore
ACE - Comcore
Aakash Agarwal
ย 

Similar to Load Balancing Algorithms - Which one to choose? (20)

Network Load Balancing.pptx
Network Load Balancing.pptxNetwork Load Balancing.pptx
Network Load Balancing.pptx
ย 
Webinar Slides: Tungsten Connector / Proxy โ€“ The Secret Sauce Behind Zero-Dow...
Webinar Slides: Tungsten Connector / Proxy โ€“ The Secret Sauce Behind Zero-Dow...Webinar Slides: Tungsten Connector / Proxy โ€“ The Secret Sauce Behind Zero-Dow...
Webinar Slides: Tungsten Connector / Proxy โ€“ The Secret Sauce Behind Zero-Dow...
ย 
clustering and load balancing
clustering and load balancingclustering and load balancing
clustering and load balancing
ย 
ACE - Comcore
ACE - ComcoreACE - Comcore
ACE - Comcore
ย 
Load Balancing in Cloud Computing.pptx
Load Balancing in Cloud Computing.pptxLoad Balancing in Cloud Computing.pptx
Load Balancing in Cloud Computing.pptx
ย 
IRJET- An Improved Weighted Least Connection Scheduling Algorithm for Loa...
IRJET-  	  An Improved Weighted Least Connection Scheduling Algorithm for Loa...IRJET-  	  An Improved Weighted Least Connection Scheduling Algorithm for Loa...
IRJET- An Improved Weighted Least Connection Scheduling Algorithm for Loa...
ย 
3 the cloud
3 the cloud 3 the cloud
3 the cloud
ย 
40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf40414094210-phpapp01 (1).pdf
40414094210-phpapp01 (1).pdf
ย 
Load Balancing In Distributed Computing
Load Balancing In Distributed ComputingLoad Balancing In Distributed Computing
Load Balancing In Distributed Computing
ย 
Transforming Legacy Applications Into Dynamically Scalable Web Services
Transforming Legacy Applications Into Dynamically Scalable Web ServicesTransforming Legacy Applications Into Dynamically Scalable Web Services
Transforming Legacy Applications Into Dynamically Scalable Web Services
ย 
Architecting for the cloud scability-availability
Architecting for the cloud scability-availabilityArchitecting for the cloud scability-availability
Architecting for the cloud scability-availability
ย 
Big ip f5 ltm load balancing methods
Big ip f5 ltm load balancing methodsBig ip f5 ltm load balancing methods
Big ip f5 ltm load balancing methods
ย 
Load Balancer Device and Configurations.
Load Balancer Device and Configurations.Load Balancer Device and Configurations.
Load Balancer Device and Configurations.
ย 
Load Balance with NSX-T.pptx
Load Balance with NSX-T.pptxLoad Balance with NSX-T.pptx
Load Balance with NSX-T.pptx
ย 
AWS_ELB_ppt.pptx
AWS_ELB_ppt.pptxAWS_ELB_ppt.pptx
AWS_ELB_ppt.pptx
ย 
AWS ELB
AWS ELBAWS ELB
AWS ELB
ย 
Fault Tolerance in Distributed Environment
Fault Tolerance in Distributed EnvironmentFault Tolerance in Distributed Environment
Fault Tolerance in Distributed Environment
ย 
Architecting for the cloud elasticity security
Architecting for the cloud elasticity securityArchitecting for the cloud elasticity security
Architecting for the cloud elasticity security
ย 
Client Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right WayClient Drivers and Cassandra, the Right Way
Client Drivers and Cassandra, the Right Way
ย 
How to Autoscale in Apache Cloudstack using LiquiD AutoScaler
How to Autoscale in Apache Cloudstack using LiquiD AutoScalerHow to Autoscale in Apache Cloudstack using LiquiD AutoScaler
How to Autoscale in Apache Cloudstack using LiquiD AutoScaler
ย 

More from Aditya Kamat

More from Aditya Kamat (9)

Spectre and meltdown
Spectre and meltdownSpectre and meltdown
Spectre and meltdown
ย 
Cryptography 101
Cryptography 101Cryptography 101
Cryptography 101
ย 
Web Hacking Series Part 5
Web Hacking Series Part 5Web Hacking Series Part 5
Web Hacking Series Part 5
ย 
Web Hacking Series Part 4
Web Hacking Series Part 4Web Hacking Series Part 4
Web Hacking Series Part 4
ย 
Web hacking series part 3
Web hacking series part 3Web hacking series part 3
Web hacking series part 3
ย 
Web Hacking series part 2
Web Hacking series part 2Web Hacking series part 2
Web Hacking series part 2
ย 
Web Hacking Series Part 1
Web Hacking Series Part 1Web Hacking Series Part 1
Web Hacking Series Part 1
ย 
Web Hacking Intro
Web Hacking IntroWeb Hacking Intro
Web Hacking Intro
ย 
Exploiting a vulnerability to gain a shell
Exploiting a vulnerability to gain a shellExploiting a vulnerability to gain a shell
Exploiting a vulnerability to gain a shell
ย 

Recently uploaded

Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
amitlee9823
ย 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
ย 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
KreezheaRecto
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
ย 

Recently uploaded (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
ย 
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night StandCall Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
Call Girls In Bangalore โ˜Ž 7737669865 ๐Ÿฅต Book Your One night Stand
ย 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Netaji Nagar, Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
ย 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ย 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
ย 

Load Balancing Algorithms - Which one to choose?

  • 3.
  • 4.
  • 5.
  • 8.
  • 9. Random algorithm: โ€ข Can you โ€œtruly randomlyโ€ distribute load? โ€ข It is simple to implement and scales well when you have a distributed load balancer setup. โ€ข Latency is not being accounted for. โ€ข Servers which are underperforming can have more requests being sent to them.
  • 11. 1 1 1
  • 12. 2 2 2
  • 13. 3 3 3
  • 14. Round Robin algorithm โ€ข Guarantees same number of requests to all servers. โ€ข We again face the same latency problem. โ€ข Does not scale well for distributed Load balancers as the logic of where to start from needs to be statically hardcoded. โ€ข What if the backend servers have different configs?
  • 17. Weighted Round Robin algorithm โ€ข Servers can take load based on their H/W configs. โ€ข Can introduce another service which check for latency and update the weights dynamically. โ€ข The weights are present on the load balancer and not the servers, so if it is distributed, all need to be in sync. โ€ข Also called โ€œJoin shortest queueโ€ algorithm.
  • 20. Least Connections algorithm โ€ข Routes requests considering the current load on each servers. โ€ข In a distributed setup, the LBs should be in sync about the active connections on each server. โ€ข We can have race condition of all LBs sending to the same server if all requests come to the LBs at once.
  • 21. 5. Least connections with randomness
  • 22. Each LB, when receives a request chooses a set of random servers. Then, the least connection algorithm is applied to those servers and the backend server is chosen for the request.
  • 23. Least connections with randomness โ€ข We are trying to solve the problem of race condition in Least connections algorithm by using this approach. โ€ข This works only in a distributed LB setup. โ€ข Adds one more layer of complexity to choose random set of servers. โ€ข The number of random servers that need to be chosen needs to be hardcoded in each LB. This number cannot be too close to the actual number of servers ? And cannot be too less as well?
  • 24. โ€ข All the techniques that we have looked at so far assume that the application is stateless and any of the servers can serve requests. โ€ข Maintaining persistent connections is a much more difficult task and shall be discussed in the future videos.
  • 25. โ€ข Join idle queue algorithm โ€“ Link โ€ข Source IP hash algorithm, based on consistent hashing โ€“ Link1, Link2 โ€ข This is used for maintaining persistent connections. โ€ข Global Server Load Balancing โ€“ Link Further reading:
  • 26. References โ€ข Comparison between basic LB algorithms: Link โ€ข Tyler McMullen - Load Balancing is Impossible: Link โ€ข โ€œBalls into Binsโ€ โ€” A Simple and Tight Analysis - Link โ€ข The Power of Two Choices in Randomized Load Balancing - Link