Model Single-Node Key-Value Core
Model shared keyspace changes for SET, GET, and DEL in a Redis-like system.
Redis Tutorials
Each tutorial gives you a short mechanism brief, practice checks, a starter D2 model, and feedback on the system behavior you submit.
Each problem focuses on one Redis-like runtime mechanism. You read the short theory, check the key behavior in practice, then produce one concrete D2 artifact: a sequence diagram, state machine, flowchart, data model, or architecture diagram.
The structure is fixed so you can focus on the mechanism instead of decoding the prompt. Every problem ships with a brief, requirements, constraints, starter files, hints, and a review rubric. Feedback points to missing runtime paths, broken invariants, and the next concrete revision.
AI feedback checks your D2 source against the tutorial rubric and tells you what holds up, what is missing, and what breaks. The goal is not a generic grade; it is a sharper model of how Redis works inside.
Model shared keyspace changes for SET, GET, and DEL in a Redis-like system.
Model valid, incomplete, and invalid RESP parsing in a Redis-like system.
Model per-client input, output, mode, and cleanup state in a Redis-like system.
Model one event-loop turn across file readiness and time events in a Redis-like system.
Model metadata-driven command dispatch before handler execution in a Redis-like system.
Model logical type, physical encoding, and object metadata in a Redis-like system.
Model two-table incremental rehashing behavior in a Redis-like system.
Model expiration metadata plus passive and active deletion in a Redis-like system.
Model maxmemory eviction decision flow in a Redis-like system.
Model Redis type choice from access patterns in a Redis-like system.
Model transport batching, ordered replies, and partial writes in a Redis-like system.
Model per-client MULTI/EXEC queuing and WATCH invalidation in a Redis-like system.
Model atomic server-side code execution and deterministic propagation in a Redis-like system.
Model live Pub/Sub fanout without durable storage in a Redis-like system.
Model streams as replayable logs with consumer group pending state in a Redis-like system.
Model point-in-time RDB snapshotting with copy-on-write in a Redis-like system.
Model AOF durability timing and rewrite compaction in a Redis-like system.
Model startup rebuild from RDB or AOF before normal traffic in a Redis-like system.
Model full sync using a snapshot plus writes after the snapshot point in a Redis-like system.
Model partial sync using replication ID, offset, and backlog range in a Redis-like system.
Model distributed failover decision, promotion, epochs, and reconfiguration in a Redis-like system.
Model cluster slot routing, MOVED, and cross-slot rejection in a Redis-like system.
Model temporary ASK routing while a slot is being migrated in a Redis-like system.
Model the complete Redis-like command path with learned subsystems attached in a Redis-like system.