Skip to main content

Load Balancing: Client-Side vs Server-Side

Learn Load Balancing: Client-Side vs Server-Side (Phase 4 · Service Discovery and API Gateway (Core), Microservices) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Load balancing concepts • A load balancer distributes requests across instances for scalability , availability (skip unhealthy instances) and even utilisation. Algorithms: round robin , weighted round robin, least connections , least response time, random, IP/consistent hashing (stickiness for caches), zone-aware. • Server-side (L4/L7): a dedicated component in front: NGINX, HAProxy, AWS ALB/NLB, Kubernetes Service/Ingress, Envoy. Clients know one address. Client-side : the client holds the instance list (from discovery) and picks an instance itself: Spring Cloud LoadBalancer. No extra hop, no...

More lessons in Phase 4 · Service Discovery and API Gateway (Core)