3 ms·
Maybe I'm missing something but the server application resulting from the source code in this book does not actually work with redis-cli or any Redis clients. I
by tidwall 4y ago
Maybe I'm missing something but the server application resulting from the source code in this book does not actually work with redis-cli or any Redis clients. It appears to be using a custom binary protocol, not valid RESP.
I feel that the RESP protocol itself is the most challenging task of building ones own Redis.
- x86hacker1010 4y agoIt says on the site: > The end result is a mini Redis alike with only about 1200 lines of code. 1200 LoC seems low, but it illustrates many important aspects the book attempts to cover. The techniques and approaches used in the book are not exactly the same as the real Redis. Some are intentionally simplified, and some are chosen to illustrate a general topic. Readers can learn even more by comparing different approaches. I wouldn't emphasize the importance is understanding Redis per-se but the ideas around a system like Redis.
- kajaktum 4y agoWhat? I genuinely think RESP is the easy part. I used to use your redcon library to get bootstrapped but then rewrote it from scratch and it was really easy. Unfortunately Golang doesnt permit good abstraction sp i have to write the same thing over and over again.