Redis keeps data in memory, which makes it extremely fast for the jobs a main database is not built for: caching expensive results, storing sessions, counting requests, queuing background work and pushing live updates. Almost every busy web application uses it, or a compatible fork such as Valkey, somewhere in its stack. This course teaches the data structures and patterns that matter in practice, and the mistakes that cause stale data, lost jobs and memory problems.
What you'll learn
- What Redis is good at and what it should not be used for
- The core data structures: strings, hashes, lists, sets, sorted sets and streams
- Keys, expiry and naming conventions that stay manageable
- Caching strategies: cache-aside, write-through, TTLs and cache invalidation
- Avoiding cache stampedes and serving stale data safely
- Sessions and rate limiting with counters and sliding windows
- Background job queues with libraries such as BullMQ, Celery or Laravel queues
- Pub/sub and streams for real-time notifications and event processing
- Atomic operations, transactions and Lua scripts
- Persistence, memory limits, eviction policies and running Redis in production
Who it's for
- Backend developers whose apps are starting to slow down under load
- Developers adding background jobs, notifications or live features
- Teams that already run Redis but are not sure they are using it well
Prerequisites
- Experience building a backend in Node.js, Python or PHP (for example Node.js and Express: Build REST APIs or Laravel for Beginners)
- Basic database knowledge
- Docker installed to run Redis locally (see Docker and DevOps Basics)
Outcomes
By the end of this course you will be able to:
- Choose the right Redis data structure for a given problem.
- Add caching to an app with a clear invalidation strategy.
- Move slow work into reliable background job queues with retries.
- Build a real-time feature and run Redis safely in production.
Course outline
| Module | Topic |
|---|---|
| 1 | Redis basics, the CLI and client libraries |
| 2 | Core data structures and when to use each |
| 3 | Keys, expiry and memory |
| 4 | Caching patterns and invalidation |
| 5 | Sessions, counters and rate limiting |
| 6 | Background job queues, retries and failure handling |
| 7 | Pub/sub and real-time notifications |
| 8 | Redis Streams and consumer groups |
| 9 | Transactions, atomic operations and Lua scripts |
| 10 | Persistence, replication and high availability |
| 11 | Monitoring, eviction policies and troubleshooting |
| 12 | Project: speed up and extend a real application |
FAQ
Redis or Valkey?
Both share the same core commands and data structures, so the skills transfer directly. We explain the licensing history and how to choose between Redis, Valkey and managed services.
Can Redis be my main database?
For some workloads, yes, but most applications are better served by a durable primary database with Redis alongside it. The course explains the trade-offs.
Which programming language do the examples use?
Mainly Node.js, with equivalent examples in Python. The Redis commands and patterns are the same in any language.
How do I join?
Get in touch and we'll share the current format, schedule and enrolment details.