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 02 · From Scratch · Redis · with code: Go · about 15 min to read

Play it as a journeyTutor comes with a plan

Redis 01: The Socket That Answers

The Socket That Answers
The Socket That Answers · Open board

The board that opens the Redis build, from Scratch.

Before you start. Build Your Own Redis, From Scratch is the project lesson: a toy key-value server, grown one stage at a time, with a real fix at each stage for something that breaks. You need nothing more than knowing that two computers talk over a network by shipping bytes back and forth. If the hello-and-reply that opens a connection is unfamiliar, TCP vs UDP, and the 3-way handshake in Networking shows it in one read.

Lesson 3 of 117 in From Scratch · Free with an account

Keep reading. It's 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.

No card, and chalk sends no email. Google sign-in only.

Start free with Google

In this lesson

  • 1983: one door for every program to build
  • Building the door: four requests, each doing one job
  • The bench fills up, and nobody at the door says so
  • One guest at a time
  • The wall: a machine does not say “period”

Terms it explains: socket, kernel, file descriptor, syscall, Blocking.

Review From Scratch