| Layer 4 Load Balancing |
Layer 7 Load Balancing |
| Pros |
Cons |
Pros |
Cons |
| Simpler to implement |
No smart Load balancing |
Granular control over load balancing decisions
|
Slower than L4 LB when raw throughput is required |
| Efficient, it doesn't inspect the packet |
No caching |
SSL Termination/Offload |
Two TCP connections Client <> LB and LB <> Server |
| One TCP connection |
Limited persistence options |
Multiple persistence options |
|
| Ability to use Direct Routing |
Direct Routing requires that you solve the ARP problem |
Caching (requires WAF) |
|