proskillv2.0.0✓ verified
load-balancing
Distribute traffic across instances for scale and reliability — L4 vs L7, algorithms (round-robin, weighted, least-connections, consistent-hash), active/passive health checks, sticky sessions, connection draining, and TLS termination, with runnable nginx/haproxy examples.
$npx vanara install load-balancing
Included with Vanara Pro ($10/mo) — unlocks all 206 items. See pricing →
Overview
A load balancer is the front door to a horizontally-scaled system: it spreads requests across a pool of backends so no single instance becomes a bottleneck or a single point of failure. Done well it is invisible — capacity scales linearly, deploys are zero-downtime, and a dead backend is shed before users notice. Done badly it concentrates load on a hot node, pins every user to one box, or routes
What it covers
- Layer: L4 vs L7
- Algorithms
- Health checks & failure detection
- Sticky sessions (affinity)
- Connection draining & lifecycle
- TLS termination
- L4 vs L7 Load Balancing