Interview Prep/Networking/Load Balancers, Proxies & CDNs

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.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancers, Proxies & CDNs