The two dispatchers: DNS picks which endpoint, the load balancer picks which instance. This lesson is what both jobs look like once real traffic, real failures, and a 3am page show up.
Before you start. You already know how a name resolves: recursive resolver, root, TLD, authoritative server (DNS Resolution), and what’s on the wire (DNS on the wire), and you’ve met the L4/L7 split, an L4 balancer sees only which address and door a connection is headed for, an L7 one opens the request and reads what is being asked, and built a toy balancer of your own (The chai stall that got famous (load balancing), S2 · Build a Load Balancer). This lesson is what both dispatchers do in production, where they fail, and why the failures look nothing alike.
Lesson 30 of 70 in DevOps
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
Or start free: a free account opens lessons 2 and 3 of every track.
In this lesson
Every server was healthy, and the internet went down anyway
The second dispatcher’s one question, asked on a timer
The five-minute goodbye
Loyal to a fault
Counting instead of guessing
The phonebook’s promise, and why it can’t keep it
L4 vs L7 - what each one can even see
Health checks: the AWS defaults, and the third failure mode
Draining: the rest of the mechanics
Sticky sessions: the alternative
Round robin vs least outstanding requests: the caveats
DNS: the two limits no configuration fixes
Terms it explains: health check, service time, deregistration delay, sticky session, round robin, least outstanding requests, TTL, consistent hashing, power of two choices.
Lab
Every algorithm looks identical on the benchmark. Which one is still standing when two requests in a hundred cost sixty times the rest?
Drag How much more the expensive requests cost to the far end, then switch tabs and read p99 under What the caller waited.