DistributedSystems
4 items
Series Posts
Part 0: Redis Deep Dive: From Cache to AI Memory
An extensive 8-part Redis tutorial series written for senior engineers. It follows the story of Maya, a Staff Engineer at GlobalMart, who transforms a struggling monolith into a distributed, AI-powered platform using Redis.
Part 1: "The Database Meltdown" — The In-Memory Revolution
Maya faces her first Black Friday at GlobalMart. The relational database is collapsing under read-heavy traffic. We explore the physics of disk I/O versus RAM, the single-threaded event loop architecture of Redis, and implement the Cache-Aside pattern in Spring Boot.
Part 3: "The Power Outage" — RDB, AOF, and the Persistence Dilemma
A sudden data center failure wipes out ephemeral shopping cart data. We dive deep into the Unix fork() system call, Copy-on-Write (CoW) memory semantics, and the trade-offs between RDB snapshots and AOF logging. We configure a robust mixed persistence strategy.
Part 5: "Going Global" — Sentinel, Clustering, and High Availability
A single node is no longer enough. We dissect Master-Replica replication, automatic failover with Redis Sentinel, and the decentralized hash-slot architecture of Redis Cluster. We configure a highly available Spring Boot application.