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 of what is under the hood of Redis, in Chapter 5, Programming Redis Part 2 – Lua Scripting, Design Patterns, and DevOps, we will show how to add complex server-side Lua programs to Redis instead of creating custom Redis commands. Chapter 5...