Networking, DNS & TLS
L4 versus L7 load balancing
Explain how layer 4 and layer 7 load balancers choose targets, why a network balancer cannot route by URL path, and when connection-level balancing spreads load unevenly.
What you will be able to do
- Explain what each load balancer layer can see and route on.
- Decide when path routing needs a layer 7 balancer or proxy.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- HTTP3 and QUICAdvanced · 4 min
Explain how HTTP/3 carries HTTP over QUIC on UDP, and how a blocked UDP port causes a slow first load before the client falls back to TCP.
- Reverse proxy routingAdvanced · 4 min
Explain how nginx chooses a location block and what proxy_pass does to the path, so routes and upstream requests match what you intend and what each upstream receives.
- BGP fundamentalsAdvanced · 4 min
Explain how BGP passes routes between networks with AS_PATH attributes, and how a valid session can still send traffic over a longer path after a policy change.
- tcpdump and packet capturesAdvanced · 4 min
Explain how tcpdump filters, snap length and saved captures show what crossed one interface, and how to read a reset and an idle gap from a capture file.
- Split horizon DNS: operational verificationAdvanced · 4 min
Explain how split-horizon DNS uses views to give one name different answers to different networks, and how to verify each view's answer, serial and TTL after a change.