Summary

This chapter started with an in-depth exploration of how Redis handles and responds to client requests defined in multiple C header and code files. Then, we took a detailed look at the source code. We examined the processCommand function that works in relation to other functions and operations in Redis. We then went through an exercise where we added two new Redis commands by coping and retrofitting existing C code into our own development Redis branch.

The next sections were on the Redis Serialization Protocol and thewith a detailed byte-level examination of the Redis binary persistence format. We then looked at two different projects that use different Redis client implementations in Python and Node.js.

Now that you have a better understanding ...

Get Mastering Redis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.