Original: Redis Core interpretation
Redis is a well-known key-value database that is widely used in caching systems. Information about Redis has not been introduced to me much. The Redis article of this system is mainly concerned from another angle, redis as an open source project, a short 2W line of code contains a robust server-side software required, we can learn the programming style of C language projects from Redis, Paradigm, learning Unix-like system programming, There are also robustness considerations for a resident service, and so on.
For a beginner in C, it's a good choice to learn a project like Redis. Redis has no obscure coding for nginx deep performance details, and C project programming for a performance-sensitive application, which is a great fit for getting started.
The Redis core interpretation system comes from my study and summary of Redis, different from the design and implementation of Redis (for the author of this book is very admire, can write such a beautiful, detailed redis interpretation) This Redis code annotation method + detailed interpretation, This series is mainly to choose the wonderful code and the key path to interpret, lead into the core of Redis content. It also focuses on the hack notation on Redis implementations. In addition, I have a unique understanding of some of the redis design, especially for Redis cluster distribution management, see related articles.
The Redis core Interpretation series has the following main contents:
- Interpreting the Redis AE Event driver Library
- Interpreting Redis dict Core Data structures
- Interpreting Ziplist, Zipmap, intset implementation details in Redis
- Understanding the core loop process of Redis operation
- Redis Core interpretation-replicantion from master to Slave
- Redis Core Interpretation – type system deconstruction
- Redis Core Interpretation – data persistence process and Rdb file
- Redis core interpretation –aof and rewrite mechanism
- Redis Core Interpretation –slow Log
- Redis Core Interpretation – Implementation of transactions (multi and CAs)
- Redis Core Interpretation –pubsub (publisher-subscriber mode) implementation
- Redis Core Interpretation – Cluster management tool (Redis-sentinel)
- Discussion and Wheatredis description of Redis cluster
Redis core Interpretation (RPM)