What load-balancing algorithms are common?
BeginnerConceptLoad Balancers, Proxies & CDNs
Answer
Round robin, weighted round robin, least connections, least response time, IP hash or consistent hashing (session affinity by client or key), and random with two choices ("power of two choices").
ALB uses round robin or least outstanding requests per target group. Least-connections or least-outstanding-requests suit requests with uneven duration; hashing suits caches.
More on Load Balancers, Proxies & CDNs
What is a load balancer and why do we use one?BeginnerWhat is the difference between L4 and L7 load balancing?IntermediateCompare ALB, NLB, GWLB and Classic Load Balancer in AWS.IntermediateWhat are health checks and how should they be designed?AdvancedWhat is connection draining (deregistration delay)?IntermediateWhat are sticky sessions and what are the drawbacks?Intermediate