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 01 · Portfolio Projects · Build It Yourself · with code: Go · about 17 min to read

Play it as a journeyTutor comes with a plan

S6 · Build a Replicated Key-Value Store (Dynamo-style)

S3 - Build a Redis Server
S3 - Build a Redis Server · Open board

One key-value server: a port, a protocol, a table in memory and a log underneath. This project runs many of them and answers the question the drawing never had to: which ones hold each key, and what happens when one of them dies.

Before you start. You’ve built S2, a door in front of identical servers, and S3, a key-value server. Both lessons end by suggesting you put the first in front of three copies of the second. This project starts with what goes wrong when you do. The slow build of the fix, one lesson per stage, is Build Your Own Dynamo in From Scratch. This page turns it into one repo and does not repeat its detail. Enough Go is an optional first read.

Lesson 6 of 19 in Portfolio Projects

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

  • October 2007: a shopping cart that must never say no
  • The obvious build, and the keys it loses
  • Four fixes, one per stage
  • Why build it, and what to call it
  • Get the code
  • The four stages, each a commit
  • The code, stage by stage
  • The numbers for your README: two dead machines
  • Put it on GitHub

Terms it explains: virtual nodes, preference list, sloppy quorum, hint, read repair, Merkle tree, bulk string, CRLF framing, RESP.

Review Portfolio Projects