5 questions to test your understanding
An e-commerce site wants to route all requests with URLs containing '/checkout/' to a high-security server pool and all image requests to a CDN-optimized pool. Which type of load balancer can achieve this?
A load balancer uses round-robin to distribute requests. Server A processes each request in 50ms; Server B is currently handling a 5-second video encoding job. After the next few requests, Server B is becoming overloaded. Which algorithm would handle this situation better?
A Layer 7 load balancer can route traffic to different backend pools based on HTTP headers, such as directing mobile clients (identified by the User-Agent header) to a mobile-optimized server pool.
When a backend server fails, it is expected to be manually removed from the load balancer's pool by an administrator — and manually re-added after recovery — to prevent traffic from reaching it.
Why is a Layer 4 load balancer faster than a Layer 7 load balancer, and what does that speed advantage cost in terms of capability?