Skip to content

Course

Redis in Production

A production-minded path through Redis data structures, memory and eviction, persistence, replication, streams, and cluster operations.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

Data Structures as Systems Design

Model real workloads with Redis primitives, expiration, atomic commands, and Lua instead of treating Redis as a dump bucket.

  1. 01Redis Is a Data Structure Server, Not a Cache with KeysLearn the operational mental model: single-threaded command execution, in-memory data structures, and the access patterns each primitive actually supports.23mOpen
  2. 02Hashes, Sets, and Sorted Sets Solve Real WorkflowsModel sessions, feature entitlements, negative caches, leaderboards, scheduling, and time windows without turning Redis into a relational database.25mOpen
  3. 03Expiration, Idempotency, and Atomic Multi-Step OperationsUse TTLs, compare-and-set patterns, pipelines, and Lua correctly so retries and concurrency do not corrupt state.27mOpen

Memory, Eviction, and Persistence

Control memory pressure, choose eviction behavior deliberately, understand fragmentation, and make RDB/AOF durability tradeoffs explicit.

  1. 01Memory Pressure and Eviction Policies Are Application SemanticsChoose maxmemory behavior deliberately, distinguish cache eviction from data loss, and read the metrics that appear before users notice.26mOpen
  2. 02Memory Fragmentation, Large Keys, and Practical AuditsDiagnose where Redis memory went using INFO, MEMORY STATS, object inspection, scan-based audits, and careful deletion strategies.24mOpen
  3. 03RDB, AOF, and the Real Durability TradeoffsUnderstand snapshots, append-only files, fsync policy, rewrite behavior, and what Redis can and cannot promise after a crash.28mOpen

Replication, Streams, and Cluster Operations

Operate replication honestly, build stream consumers that survive failure, and scale with Redis Cluster without inventing impossible guarantees.

  1. 01Replication and Failover Without Fairy TalesUnderstand asynchronous replication, replica lag, promoted-write loss, Sentinel behavior, client failover, and safe operational checks.27mOpen
  2. 02Streams and Consumer Groups for Workflows That Survive FailureDesign event feeds with XADD, consumer groups, pending entries, acknowledgements, trimming, and recovery loops that operators can actually run.28mOpen
  3. 03Redis Cluster Operations: Slots, Resharding, and Scaling HonestlyOperate hash slots, multi-key constraints, node failure, resharding, client routing, and capacity growth without breaking application invariants.30mOpen