Redis

Core data structures, persistence (RDB/AOF), replication & clustering, caching patterns & eviction, Pub/Sub & Streams, transactions & Lua scripting, and Spring Data Redis.

1

Redis — Core Data Structures & Commands

beginner

Before persistence, replication, caching strategy, or Spring Data Redis mean anything, you need fluency with the five core data structures and the single-threaded model that makes every one of them atomic.

2

Redis — Persistence: RDB & AOF

intermediate

Redis lives in RAM by default — this chapter is about the specific, tunable trade-off between how fast it restarts and how much you're willing to lose if it doesn't restart cleanly.

3

Redis — Replication, Sentinel & Cluster

intermediate

How a single Redis instance becomes a resilient, horizontally-scaled system — leader-follower replication for copies, Sentinel for automatic failover, and Cluster's hash-slot model for sharding.

4

Redis — Caching Patterns, TTL & Eviction Policies

intermediate

Cache-aside, stampede prevention, and avalanche prevention aren't Redis-specific ideas — this chapter is where the general patterns from NoSQL Foundations get wired up with real EXPIRE/SET/maxmemory commands.

5

Redis — Pub/Sub, Streams, Transactions & Lua Scripting

advanced

The four tools Redis gives you for coordinating across clients — from the simplest, least reliable (Pub/Sub) to the strongest, truly atomic one (Lua scripts) — and exactly when each one is the right call.

6

Spring Boot with Redis — Spring Data Redis & Caching

intermediate

Everything from RedisTemplate to @Cacheable to @RedisHash is Spring wiring on top of commands you already know from Chapters 01 and 04 — this chapter is where that wiring gets concrete in a real Spring Boot application.