Redis Engineering Masterclass: Zero to Veteran (10–12 Year Level)¶
Welcome to the definitive Redis technical encyclopedia, internal mechanics dissection, and production field manual. This series breaks down Redis from its single-threaded ae event loop to its internal C memory allocators, custom data structures, replication consensus, and failure recovery playbooks.
Curriculum Table of Contents¶
| Phase | Module Title | Chapters Covered | Target Depth |
|---|---|---|---|
| Blueprint | Master Memory Map: Connected Architecture | Universal | Complete connected neural graph, read/write/eviction pathways, cause-and-effect matrix |
| Evolution | Architectural Evolution Deep Dive | 2009–2024 | 15-year visual evolution: VM removal, Cluster, Modules, Threaded I/O, Multi-Part AOF |
| Phase 01 | Evolution, Process Model & Sandbox | Ch 1–5 | Single-threaded philosophy, redis.conf, client output buffer limits |
| Phase 02 | Data Types & Storage Footprint | Ch 6–10 | OBJ_ENCODING_INT, raw vs embstr, Listpacks, Quicklists, Radix tree Streams, HyperLogLog |
| Phase 03 | Cellular Memory Allocators & C Internals | Ch 11–15 | Jemalloc arenas, mem_fragmentation_ratio, SDS headers, Dict progressive rehashing |
| Phase 04 | Event Loop & Threaded I/O | Ch 16–19 | ae event loop (Epoll/Kqueue), file vs time events, beforeSleep, Threaded I/O |
| Phase 05 | Persistence Engine & Recovery | Ch 20–23 | RDB fork Copy-on-Write, AOF fsync pipelines, Multi-Part AOF (v7.0), Hybrid persistence |
| Phase 06 | High Availability, Sentinel & Clustering | Ch 24–27 | Replication backlog, PSYNC2, Sentinel Raft-like voting, 16,384 hash slots, gossip |
| Phase 07 | Security, ACLs & Isolation | Ch 28–30 | Redis ACL categories, TLS/SSL inter-node bus encryption, dangerous command renaming |
| Phase 08 | Extensions, Modules & Ecosystem | Ch 31–33 | Redis Modules API in C/Rust, RediSearch, RedisJSON, Lua scripts, Redis Functions |
| Phase 09 | Choke Points & Administration | Ch 34–37 | BigKey/HotKey detection, SLOWLOG, LATENCY DOCTOR, maxmemory eviction thrashing |
| Phase 10 | Destruction Labs & Runbooks | Ch 38–40 | Single-thread freeze, Fork COW memory OOM kill, Replication buffer storms |