In this challenge, you’ll build an application that can speak the Redis protocol, and is capable of serving basic commands like PING, ECHO, SET and

Build your own Redis

submited by
Style Pass
2021-05-30 18:00:06

In this challenge, you’ll build an application that can speak the Redis protocol, and is capable of serving basic commands like PING, ECHO, SET and GET. Along the way, you’ll learn about TCP servers, event loops and more.

In this stage, you’ll add support for multiple concurrent clients to your Redis server. To achieve this you’ll use an Event Loop, like the official Redis implementation does.

In this stage, you’ll respond to the ECHO command. You’ll parse user input according to the the Redis protocol specification.

In this stage, you’ll add support for setting a key with an expiry. The expiry is provided using the “PX” argument to the SET command.

Leave a Comment