Build your own Redis
Create an in-memory data store from scratch with a TCP protocol.
advanced
TCP
RESP
Networking
Persistence
Concurrency
About this challenge
Implement a production-grade cache layer by understanding Redis internals. You will progressively build features while learning about protocols, persistence and replication. The outcome is a deep intuition for high-performance network services.
What you will build
- A TCP server speaking the Redis Serialization Protocol (RESP)
- Support for commands like PING, ECHO, SET, GET with expiry
- Append Only File (AOF) style persistence
- Basic replication and snapshotting concepts
What you will learn
- Design and parse binary protocols
- Event-driven server architecture
- Managing state and persistence trade-offs
- Testing and benchmarking network services
Getting started
There is no backend work wired yet. When enabled, you will be able to enroll, track progress, and earn badges for completing stages.
For now, explore the curriculum and prepare your environment.
- Skim all stages to understand the scope
- Decide your implementation language
- Set up a project with tests and formatter