Load balancers Flashcards
What’s a good metaphor for an Network Load Balancer and Application Load Balancer
An NLB is like an uninquisitive bouncer, they don’t really check your details just let you into the club.
An ALB is like an inquisitive library. It checks your library card, the books, and can forward you to the right stack.
Where does ALB fit in the OSI Model?
Layer 7 or Application
Where does NLB fit in the OSI Model?
Layer 4 or Transport
When would you use an NLB?
For TCP/UDP traffic, optimising for performance, or need static IPs
When would you use an ALB?
For HTTP traffic, effective routing, running microserves behind the load balancer
What are some dynamic load balancing algorithms?
Least connection
Weighted response time
Resource type
What are some static load balancing algorithms?
Round robin and weighted round robin, IP hash