What can a layer 7 load balancer do that a layer 4 one cannot?
- Spread connections by IP and port
- Route requests by URL path or header
- Balance UDP traffic across servers
- Forward packets without any proxying
An L7 balancer parses HTTP, so it can send /api to one pool and /images to another. An L4 balancer only sees addresses and ports.
Play Networking ▸