Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 598 Bytes

PLANS.md

File metadata and controls

16 lines (12 loc) · 598 Bytes

A Toy Redis Server in Rust

Steps

  • Write a parser for redis protocol
  • Hack main to accept connection and return "Ok" always (no threads/concurrency), using raw TcpStream
    • Should fool redis-cli
  • Run the above in a loop
  • Spawn a thread for each connection (maybe use mpsc channels?)
  • Parse Commands (only SET and GET) from Resp Array
    • Make a HashMap based storage, and handle SET and GET
    • Maybe generalize to parse more commands
  • Somehow use tokio event loops
  • Re-write protocols in tokio