Networking, DNS & TLS
L4 load balancing: TCP-level balancing and idle timeouts
Balancing connections instead of requests: why idle database connections die after exactly 10 minutes, and why every backend suddenly sees the balancer's address.
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
- Certificate expiry and renewal with Let's EncryptBeginner · 5 min
A certificate renewal that succeeded on disk and still caused an outage, and the three checks that would have caught it before the 03:00 pager.
- Reverse proxy: nginx in front of an appIntermediate · 5 min
A 504 at exactly 60 seconds and an app that sees every user as 127.0.0.1: both come from what a reverse proxy changes on the way through.
- L7 load balancing: host and path routingIntermediate · 5 min
How a balancer that reads the request picks a backend by host and path, and the two ordering rules, one in nginx and one in AWS, that send a request to the wrong place.
- OSI and TCP IP layersBeginner · 4 min
Explain the TCP/IP layers and the header each one adds, so a connection fault can be tied to the link, IP, transport or application layer with a short test at each step.
- Ethernet frames and ARPIntermediate · 4 min
Explain how Ethernet frames carry MAC addresses and how ARP maps an IPv4 address to a MAC address on one segment, including its cache and its replies.
- IPv4 subnettingIntermediate · 4 min
Explain how a prefix length splits an IPv4 address into network and host parts, and how a host uses its mask to decide whether a destination is local or behind the…