Grokking Redis

Learn how Redis works and how to use it in system design: data structures, caching, locks, rate limits, streams, scaling, and AI workloads, on Redis 8.

Level:
Beginner
Study Time:
20h
Lessons:
50
Updated
Today
4.7
(860 ratings)
5,631 learners
Arslan Ahmad
Created byArslan Ahmad
Ex FAANG Manager, Expert Behind Grokking Redis

Course Overview

Redis appears in most large system designs: as a cache in front of a database, a counter for rate limits, a lock between servers, a queue between services, or a leaderboard that ranks millions of players. Writing "add Redis" on a whiteboard is easy. Explaining which data structure holds the data, how much memory it needs, and what happens when a node fails is what this course teaches. You start with how Redis works: data in memory, one thread that executes commands, and an event loop that serves many connections. You then learn each data structure, from strings and hashes to sorted sets, bitmaps, HyperLogLog, and streams. The middle of the course applies them to patterns: cache-aside and its relatives, TTL design and invalidation, cache stampedes, rate limiting, distributed locks with fencing tokens, job queues, idempotency keys, leaderboards, Pub/Sub, consumer groups, geospatial search, and news feed fan-out. Later chapters cover persistence, replication, Sentinel, Cluster, memory estimation, and failure scenarios, then compare Redis with Memcached, Kafka, SQS, and ZooKeeper. Complete designs, from a rate limiter to a chat system and a URL shortener, put the pieces together, and a final chapter covers semantic caching, vector search, and token quotas for AI systems. The core commands were run on Redis 8.10 during the review, so the replies you read are the replies Redis printed.

Grokking Redis Image
This course
Lifetime access to this course
One-time payment. Yours forever.
All 60 courses
Annual plan
Discussions
Certificate
Free updates
Own everything, once
Grokking Redis Image
This course
Lifetime access to this course
One-time payment. Yours forever.
All 60 courses
Annual plan
Discussions
Certificate
Free updates
Own everything, once

What you'll learn in Grokking Redis

  • Explain why Redis is fast: data in memory, one command thread, an event loop, and I/O threads.
  • Name keys, set TTLs, and predict how expiration and eviction free memory.
  • Prevent cache stampedes, handle hot keys and cold starts, and use Bloom filters for negative caching.
  • Design leaderboards, Pub/Sub notifications, stream consumers, geospatial search, and news feed fan-out.
  • Run replication, Sentinel, and Redis Cluster, and find and fix hot keys and big keys.
  • Decide between Redis and Memcached, Kafka, SQS, database locks, or ZooKeeper, and know when not to use Redis.
  • Use Redis in AI systems for semantic caching, vector search, conversation memory, and token quotas.
  • Choose between strings, hashes, lists, sets, sorted sets, bitmaps, HyperLogLog, streams, and geo indexes.
  • Apply cache-aside, read-through, write-through, and write-behind caching, and invalidate entries safely.
  • Build rate limiters, distributed locks with fencing tokens, job queues, delayed jobs, and idempotency keys.
  • Configure RDB and AOF persistence, and state how much data each setting can lose.
  • Estimate memory per key and per structure, and size an instance with room to grow.
  • Work through complete designs, from capacity numbers to failure handling.

Course Content

• 10 Chapters • 84 Lessons
1.

Introduction

2 lessons

Who Is This Course For

Course Overview

What people say about our courses

Simon Barker avatar
Simon Barker
Software Engineer
This is what I love about http://designgurus.io’s Grokking the coding interview course. They teach patterns rather than solutions.
Ashley Pean avatar
Ashley Pean
Software Engineer
Check out Grokking the Coding Interview. Instead of trying out random Algos, they break down the patterns you need to solve them. Helps immensely with retention!
Eric avatar
Eric
Software Engineer
I've completed my first pass of "grokking the System Design Interview" and I can say this was an excellent use of money and time. I've grown as a developer and now know the secrets of how to build these really giant internet systems.
Roger Cruz avatar
Roger Cruz
Software Engineer
The world gets better inch by inch when you help someone else. If you haven't tried Grokking The Coding Interview, check it out, it's a great resource!
Steven Zhang avatar
Steven Zhang
Software Engineer
Just wanted to say thanks for your Grokking the system design interview resource (https://lnkd.in/g4Wii9r7) - it helped me immensely when I was interviewing from Tableau (very little system design exp) and helped me land 18 FAANG+ jobs!
Arijeet avatar
Arijeet
Software Engineer
Just completed the “Grokking the system design interview”. It's amazing and super informative. Have come across very few courses that are as good as this!

About the Author

Arslan Ahmad

Arslan Ahmad

Design Gurus Founder
Ex-FAANG Manager
Meta
Microsoft
Google
Amazon
Uber

Industry Expertise & Leadership

Arslan Ahmad is the lead author of Grokking Redis. As the founder of Design Gurus and a former FAANG hiring manager, he has worked at industry giants like Facebook (now Meta) and Microsoft.

He has conducted hundreds of system design interviews, giving him unique insight into what top tech companies look for in candidates.

The course also incorporates expertise from senior engineers at Google, Meta, Amazon, Microsoft, and Uber, ensuring you learn system design best practices from professionals who have built and scaled real-world systems.

500+

Interviews Conducted

10k+

Students Taught

Related Courses

Grokking the Coding Interview: Patterns for Coding Questions
The 24 essential patterns behind every coding interview question. Available in Java, Python, JavaScript, C++, C#, and Go. The most comprehensive coding interview course with 543 lessons. A smarter alternative to grinding LeetCode.
4.6
198K learners
Discounted price for Your Region

$197

Grokking Advanced JavaScript
4.7
667 learners
Discounted price for Your Region

$48

Grokking JavaScript Fundamentals
Learn to code in JavaScript and kickstart your web development journey with our beginner-friendly course.
5
631 learners
Discounted price for Your Region

$48

FAQs

It is a course on how Redis works and how to use it as a building block in large systems. It starts with why Redis is fast and how each data structure works, then covers caching, coordination, real-time and analytics patterns, persistence, replication, Sentinel and Cluster, decision frameworks, complete designs, and Redis in AI systems.

It is for software engineers who know what a database and a cache are but have not studied how Redis works inside. It suits engineers preparing for system design interviews, backend engineers who use Redis mostly as a simple cache, engineers who run Redis in production, and engineers building AI applications.

No. The first chapter explains how Redis stores data and why it is fast, and every later lesson builds on it. You should know basic data structures, Big-O notation, and how a web application uses a database and a cache.

The course describes Redis Open Source 8, and the core commands in the lessons were run on Redis 8.10 during the review. Where a command or option arrived in a recent version, the lesson names that version, and the lessons point out where Valkey, the open source fork of Redis, behaves differently.

No. The body of each lesson teaches Redis itself: the mechanism, the commands, the memory cost, and the ways it fails. Each lesson ends with a short section on how to use the topic in a system design interview, with two likely follow-up questions and their answers.

No, but it helps. The course has no coding environment in the browser. Commands are shown as you would type them in redis-cli, with the reply Redis returns, so you can run them on any Redis 8 server you install or rent.

Seven: a rate limiter, a gaming leaderboard, a news feed, a chat system, driver matching for a ride-hailing service, flash-sale inventory, and a URL shortener at scale. Each one starts from requirements and capacity numbers and ends with failure handling.

Yes. You learn RDB and AOF persistence and what each setting can lose, replication and replica lag, Sentinel failover, Redis Cluster with hash slots and resharding, hot keys and big keys, memory estimation, and the common failure scenarios with their defenses.

Yes. The last chapter covers semantic caching of model responses, Redis as a vector store with HNSW and hybrid queries, conversation memory for chat applications, and rate limits and quotas measured in tokens.

Grokking the System Design Interview covers the whole interview and many building blocks. This course goes deep on one building block, Redis, so that you can explain the exact data structure, commands, memory cost, and failure behavior behind each part of a design that uses it.

It is not a reference for every Redis command, and it does not teach the client library of any one programming language. For every option of a command, use the official Redis documentation.

Design Gurus logo
One-Stop Portal For Tech Interviews.
About Us
Our Team
Careers
Partners
Contact Us
Become Affiliate
Copyright © 2026 Design Gurus, LLC. All rights reserved.