8 Comments
User's avatar
Varun Upadhyay's avatar

RESP specification mentions first byte for array types as '*' (https://redis.io/docs/reference/protocol-spec/#arrays)

Just want to confirm if this coding exercise is based upon RESP2 or any other version of protocol specification?

John Crickett's avatar

Thanks for the heads up, for some reason the * was missing from the article when pasted into SubStack. I've corrected it now.

Manish Ghildiyal's avatar

Which server implementation in rust ecosystem would be a good pick for this task?

John Crickett's avatar

The idea is you build your own.

You could use Tokio for the async, or just raw threads.

Manish Ghildiyal's avatar

I am learning rust, would try to implement this exercise in it. Wish me luck.

John Crickett's avatar

Awesome, good luck!

Gregor Ojstersek's avatar

Redis can be extremely helpful with caching and performance optimization. This challenge is very articulate and very thorough. It gives a really good high level understanding on how Redis is operating. Great job with the challenge John!

John Crickett's avatar

Thanks Gregor, I enjoyed writing it and doing it myself was the inspiration to start writing up the coding challenges.