Intermediate

Redis and Caching

Fast, until it is wrong.

Cache-aside and its invalidation, TTLs, stampedes, Redis data structures and their uses, distributed locks and their limits, and Spring's cache abstraction — with the consistency bugs caching introduces named up front.

4 lessons written2 modules~1h reading

After this course you can

  • Choose a caching pattern and an invalidation strategy for a read path
  • Prevent a cache stampede and explain the thundering herd
  • Use Redis structures beyond GET and SET: hashes, sorted sets, streams
  • Explain why a Redis lock is not a correctness guarantee

Curriculum

4 lessons · outlined lessons show their plan