Compare client-side load balancing with server-side load balancing.

Python interview question for Advanced practice.

Answer

Server-side load balancing uses a central proxy (like F5 or NGINX) that distributes requests to a pool of backends. Client-side load balancing (like using gRPC stubs with a service registry) lets the client select the instance directly. Client-side reduces the 'extra hop' latency but increases the complexity and resource usage of the client applications.

Explanation

Client-side load balancing is common in gRPC, whereas server-side is the standard for web browsers hitting a website.

Related Questions