એક load balancer આવતા traffic ને backend servers ના pool માં ફેલાવે છે જેથી કોઈ એક પર બોજ ન પડે અને server મરી જાય તો પણ system ઉપલબ્ધ રહે. મુખ્ય ભેદ એ છે કે તે કયા સ્તર પર કામ કરે છે:
L4 (Transport) L7 (Application)
routes by IP + port only reads HTTP: path, headers, cookies, host
┌──────────────┐ ┌──────────────┐
│ balancer │──▶ server A │ balancer │ /api/* ──▶ API pool
│ (TCP/UDP) │──▶ server B │ (HTTP-aware) │ /img/* ──▶ static pool
└──────────────┘──▶ server C └──────────────┘ cookie=X ──▶ sticky backend
fast, opaque, protocol-agnostic smart routing, TLS termination, can inspect
