Skip to content
Contact

Series · 15 parts

Redis Masterclass

A practical path through Redis: the core data structures, caching patterns, and the infrastructure uses (pub/sub, streams, locks, rate limiting, leaderboards), then running Redis in production with replication, Sentinel, Cluster, and monitoring.

  1. What Redis Is and When to Use It

    Redis gets reached for reflexively, "just add Redis," as if it were a single fix for slowness.

    Part 1 of 15 · BackendWhat Redis Is and When to Use It — Aman Kumar Singh
  2. Redis Data Structures: An Overview

    The reason Redis solves so many problems is that it isn't one thing, it's a collection of data structures, each with commands tuned for a specific access pattern.

    Part 2 of 15 · BackendRedis Data Structures: An Overview — Aman Kumar Singh
  3. Redis Strings, Counters, and Atomic Operations

    Strings are the simplest Redis type and the one people underestimate.

    Part 3 of 15 · BackendRedis Strings, Counters, and Atomic Operations — Aman Kumar Singh
  4. Redis Hashes: Storing Objects

    Part 4 of 15 · BackendRedis Hashes: Storing Objects — Aman Kumar Singh
  5. Redis Lists and Simple Queues

    A Redis list is an ordered sequence of strings you push and pop from either end.

    Part 5 of 15 · BackendRedis Lists and Simple Queues — Aman Kumar Singh
  6. Redis Sets and Set Operations

    A Redis set is an unordered collection of unique strings.

    Part 6 of 15 · BackendRedis Sets and Set Operations — Aman Kumar Singh
  7. Redis Sorted Sets and Ranked Data

    If you learn one Redis structure deeply, make it the sorted set. It's a set where every member carries a numeric score, and members stay ordered by that score.

    Part 7 of 15 · BackendRedis Sorted Sets and Ranked Data — Aman Kumar Singh
  8. Redis Key Expiration, TTL, and Eviction Policies

    Redis holds everything in memory, which raises an obvious question: what stops it from filling up and falling over? The answer is two mechanisms working together.

    Part 8 of 15 · BackendRedis Key Expiration, TTL, and Eviction Policies — Aman Kumar Singh
  9. The Cache-Aside Pattern with Redis

    Cache-aside is the caching pattern you'll use most, and probably the one you already use without knowing its name.

    Part 9 of 15 · BackendThe Cache-Aside Pattern with Redis — Aman Kumar Singh
  10. Read-Through and Write-Through Caching with Redis

    Cache-aside puts the caching logic in your application.

    Part 10 of 15 · BackendRead-Through and Write-Through Caching with Redis — Aman Kumar Singh
  11. Write-Behind (Write-Back) Caching with Redis

    Write-through keeps the cache and database consistent by writing to both synchronously, which makes writes as slow as the database.

    Part 11 of 15 · BackendWrite-Behind (Write-Back) Caching with Redis — Aman Kumar Singh
  12. Refresh-Ahead Caching with Redis

    Every cache pattern so far accepts that cache misses happen: a key expires, a request misses, and someone pays the cost of reloading from the database. Refresh-ahead attacks that directly.

    Part 12 of 15 · BackendRefresh-Ahead Caching with Redis — Aman Kumar Singh
  13. Cache Invalidation Strategies with Redis

    There's an old joke that there are only two hard problems in computer science: cache invalidation and naming things. The joke endures because it's true.

    Part 13 of 15 · BackendCache Invalidation Strategies with Redis — Aman Kumar Singh
  14. Preventing Cache Stampede with Redis

    A cache stampede is one of those failures that stays hidden until traffic is high, then takes down your database at the worst possible moment.

    Part 14 of 15 · BackendPreventing Cache Stampede with Redis — Aman Kumar Singh
  15. Redis Caching Best Practices and Pitfalls

    The caching module covered the patterns and their failure modes one at a time.

    Part 15 of 15 · BackendRedis Caching Best Practices and Pitfalls — Aman Kumar Singh