Build your own Redis

Speak the RESP protocol and build the in-memory database behind half the internet.

Redis keeps sessions, caches, leaderboards, rate limits and queues for companies like GitHub, Twitter and Stack Overflow. Your version will speak the same protocol.

About 240 minutes across 7 stages. Skills: Network protocols, Hash maps, Expiry & time, Data types, Error handling.

The guides are part of licode Club.

Stages

  1. Reply +PONG to every PING.
  2. Add ECHO with bulk string replies.
  3. A key-value store with SET and GET.
  4. Expiring keys with PX / EX and a test clock.
  5. INCR, DEL and EXISTS with integer replies.
  6. Lists: RPUSH, LPUSH, LLEN, LRANGE.
  7. Errors, TYPE and wrong-type safety.