Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 10 · From Scratch · Sharded KV store · about 16 min to read

Play it as a journeyTutor comes with a plan

Load balancer, stage by stage

Concurrency
Concurrency · Open board

The HTTP server’s concurrency board. A load balancer is the next door out: the same server code, many copies of it, and one program in front deciding which copy gets each request.

Lesson 72 of 117 in From Scratch

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.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2016 to 2017: Vimeo’s cache was busy on one machine and idle on another
  • Stage 1. Round-robin: take turns
  • Stage 2. Health checks: stop sending to a dead backend
  • Stage 3. Least connections: send to the one with the least work
  • Stage 4. Consistent hashing: the same key goes to the same backend
  • Stage 5. Connection draining: remove a backend without cutting anyone off
  • What the simulation leaves out
  • The order matters

Terms it explains: backend, round-robin, health check, passive, active, Least connections, consistent hashing, Connection draining, Stage 2, Stage 3, Stage 4, Stage 5.

Review From Scratch