Build Redis (10 scenes)
Scene 01 · Foundations — what Redis is, words you'll hear
An in-memory data-structure server, the eight core nouns, and the six canonical types. Orientation before you touch the internals.
Scene 01
Foundations — what Redis is, words you'll hear
Diagram
Three client lanes on the left send commands over RESP to a single Redis server in the center. Inside the server, a row of value-cards introduces each canonical type — string, list, hash, set, sorted-set, stream — with the bytes that represent it. The spotlight on the right walks through one piece at a time so you can put names to all the parts before any internals.
service 1local maprestart wipes itservice 2local maprestart wipes itservice 3local maprestart wipes itCLIENTS · 3Service AclientSETService BclientLPUSHService CclientZADDRedissingle thread · in-memory keyspaceKEYSPACE · 6 keysSTRINGviews:home14823LISTfeed:42[a, b, c, …]HASHuser:42{name, email}SETonline{7, 14, 22}ZSETlb:global{…by score…}STREAMevents[t1, t2, …]optionalpersistenceRDB snapshotsnapshotpoint-in-timeAOF logappend-only logevery write
Backend services need rich shapes — recent items, leaderboards, online users — and lose them on restart, can't share across instances.
A quick three-beat tour. The problem first, then the architecture, then the words you'll need for the rest of the curriculum.