Redis: One Thread, Many Clients

The board behind this lesson. Sits under the project lesson Build Your Own Redis - From Scratch, and hands off to Keys That Die (Expiry).
Before you start. This series builds a small copy of Redis, a program that stores keys and values in memory and answers other programs over the network. So far the copy can take the raw characters arriving on a network connection (a socket) and split them into commands, using Redis’s own message format, RESP (Redis 02: RESP, The Wire Protocol). It also keeps every key in one shared table, and the last lesson found a crack in it: two things touching that table at once corrupt it (Redis: The Map (SET / GET / DEL)).