Loading...

Build your own Redis

Learn about TCP servers, the Redis protocol and more

In this challenge, you'll build a toy Redis clone that's capable of handling basic commands like PING, GET and SET. Along the way, we'll learn about event loops, the Redis Protocol and more.

Stages

Bind to a port
< 5 minutes

In this stage, you'll start a TCP server on port 6379, which is the default port that Redis uses.

Respond to PING
5-10 minutes

In this stage, you'll respond to the PING command. You'll use the Redis protocol to encode the reply.

show all...