This is a self-paced course where you will explore the internal workings of Redis by reimplementing its key features in Golang. Together, we will recreate mechanisms such as the event loop, serialization protocol, persistence, pipelining, eviction, and transactions.
Redis Internals
Redis Internals is a 28-lesson 9 hours 6 minutes self-paced course by Arpit Bhayani. This is a self-paced course where you will explore the internal workings of Redis by reimplementing its key features in Golang.
Course facts
- Lessons
- 28
- Duration
- 9 hours 6 minutes
- Language
- English
- Added to CourseFlix
- August 2025
- Instructor
- Arpit Bhayani
- Price
- Premium
Redis is one of the most versatile modern databases. Although it is often used as a cache, it can also function as a message broker, streaming engine, and much more. This course will answer your main questions about Redis: why is it so fast? and how does it handle a huge number of TCP connections while remaining single-threaded?
Throughout the course, we will deconstruct Redis step by step, and in the process, we will write its full implementation in Go. The implementation will be compatible with any Redis client in the world - you will be able to connect to our database just like with the real Redis! All the code is available in open access on GitHub (DiceDB/dice).
Why enroll?
- Understand the architecture from the inside
- You will learn how databases are created from scratch and understand the key architectural decisions that make Redis so unique.
- Explore the "unknown"
- Master the most intriguing concepts and "tricky" algorithms that underlie the high speed and flexibility of Redis.
- Become a better engineer
- You will grow as a developer and be able to call yourself a true "Asli Engineer."
Participant Requirements
We will be implementing the main mechanisms of Redis, such as the event loop, serialization protocol, persistence, pipelining, and eviction. Therefore, it is important to have:
- basic knowledge of Go
- a development environment on Linux
- a Google account (as only Google sign-in is supported)
Additional
Who teaches Redis Internals? Arpit Bhayani
Arpit Bhayani is a US-based software engineer (formerly at Amazon, Practo, and now an independent educator) who runs asliengineering.com and the Arpit Bhayani YouTube channel, both focused on system design and database internals. His material is unusually deep for the system-design-interview market — taking serious detours into the actual implementation of Redis, Postgres, and the data structures behind them.
His CourseFlix listing carries three Arpit Bhayani courses: The System Design Masterclass, Redis Internals (an end-to-end study of how Redis is implemented in C), and System Design for Beginners. Material is paid and aimed at engineers preparing for system-design interviews or doing infrastructure work on production data systems.
What lessons are included in Redis Internals?
| # | Lesson Title | Duration | Access |
|---|---|---|---|
| 1 | Course Introduction Demo | 10:55 | |
| 2 | What makes Redis special? | 22:04 | |
| 3 | Writing a Simple TCP Echo Server | 16:25 | |
| 4 | Speaking the Redis' Language | 15:50 | |
| 5 | Implementing RESP | 14:38 | |
| 6 | Implementing PING | 19:29 | |
| 7 | IO Multiplexing and Event Loops | 21:15 | |
| 8 | Handling multiple concurrent clients | 26:29 | |
| 9 | Implementing GET, SET, and TTL | 22:09 | |
| 10 | Implementing DEL, EXPIRE and auto-deletion | 27:23 | |
| 11 | Eviction strategies and implementing simple-first | 20:24 | |
| 12 | Implementing Command Pipelining | 22:00 | |
| 13 | Implementing AOF Persistence | 21:05 | |
| 14 | Object, Encodings, and Implementing INCR | 24:48 | |
| 15 | Implementing INFO and allkeys-random eviction | 19:37 | |
| 16 | The Approximated LRU Algorithm | 23:15 | |
| 17 | Implementing the Approximated LRU Algorithm | 25:27 | |
| 18 | Understanding how Redis caps memory | 13:20 | |
| 19 | Overriding malloc for better performance | 06:11 | |
| 20 | Implementing Graceful Shutdown | 37:18 | |
| 21 | Implementing Transactions | 22:00 | |
| 22 | List Internals - Ziplist and Quicklist | 28:16 | |
| 23 | Set Internals - Intset | 13:25 | |
| 24 | Geospatial Queries and Geohash | 21:39 | |
| 25 | String Internals - Simple Dynamic Strings | 15:56 | |
| 26 | Hyperloglog and Cardinality Estimation | 13:22 | |
| 27 | LFU and Approximate Counting | 20:49 | |
| 28 | What next? | 01:12 |
One payment unlocks this course and every other premium course. No auto-renew.
See plansWhat courses are similar to Redis Internals?
Updated 1mo agoReact and Laravel: Breaking a Monolith to Microservices
By: UdemyLearn to break a monolithic app into microservices using React, Next.js, and Laravel, with Docker, RabbitMQ, Redis, and Stripe integration.15h 7m
Updated 2y agoGo Programming Bootcamp
By: UdemyGo is the #1 language in most demand by employers right now. Employers are willing to pay 33% more for those who are gifted Go programmers.15h 56m
Updated 1mo agoWeb hook service application over SSH
By: Anthony GGBuild a terminal application and server in Go that generates webhook URLs and forwards traffic to your localhost over SSH.3h 16m0/5
Updated 2y agoFor the Love of Go: Book/Video Bundle
By: John ArundelHello, and welcome to learning Go! It's great to have you here. This is the bundled edition of ‘For the Love of Go’, a book introducing the Go programming langu6h 12m
Updated 2y agoGolang: How to Build a Blockchain in Go Guide
By: UdemyLearn how to build a blockchain from scratch with Go Programming Language (Golang).5h 24m
Updated 3y agoMastering Multithreading Programming with Go (Golang)
By: UdemyLearn about Multithreading, Concurrency & Parallel programming with practical and fun examples in Google's Go Lang.5h 24m
Updated 3y agoUltimate Go: Software Design with Kubernetes
By: Ardan LabsThis course teaches you how to build production-level services in Go, leveraging the power of a Domain Driven, Data Oriented Archiecture deployed in Kubernetes.18h 2m
Updated 10mo agoAI Engineering with Go
By: ByteSizeGoLearn to integrate AI with Go: create projects, enhance skills, and deploy AI apps. Includes LLM API, vector databases, and model interactions.11h 13m5/5
More courses by Arpit Bhayani
Updated 2mo agoThe Applied AI Masterclass
Practical course on creating AI systems and working with LLM. You will master prompting, agents, and RAG, and create prototypes and production solutions.20h 52m5/5
ClassicSystem Design for Beginners
"System Design for Beginners" is a course for beginners in a convenient self-paced format.12h 2m5/5
FreeClassicThe System Design Masterclass
A masterclass that helps you become great at designing scalable, fault-tolerant, and highly available systems. This is a prime and intermediate-level cohort-bas43h 13m4/5