[Notice] [March 8] redis Design and Implementation

Source: Internet
Author: User

[Notice] [March 8] redis Design and Implementation

[Notice] [March 8] redis Design and Implementation 2013-02-28 10:36:27 Since I started writing some redis source code analysis intermittently on my blog Article Since then, I have always had the intention to do a complete analysis of the redis source code, instead of writing multiple redis source code analysis articles at intervals and multiple times, record the key points and interesting parts into a document (or, more broadly, a book ?).

I put the idea of "redis source code book" into practice in December 2012, and I am lucky to have completed the first draft today.

I named this "redis source code book" redis design and implementation, which consists of two parts:

1. A document describes the key implementation, core data structure, andAlgorithmAnd the design trade-off.
2. A redis 2.6 source code. Most of the files in the source code are annotated in detail. (Updated on March 5, with annotated source code has been released https://github.com/huangz1990/annotated_redis_source)

In this document, I try my best to extract the operating mechanisms of various redis functions fromCodeAnd use short text, images, flowcharts, and tables to express these mechanisms. Only a small amount of pseudo code orSource code. This ensures that the document records high-level design ideas-the reader can easily understand the operating principles of redis without dealing with various implementation details in the source code.

On the other hand, I think a source code with complete comments is also useful for deep learning about redis: for those who are interested in redis's operating mechanism but do not want to fall into the details of the source code, they only need to read the document. For those who are more curious, for readers who need to go deep into the source code, the role of the document is like the dipper in the night sky, which can indicate the overall direction for them, while the comments in the source code are like road signs, give some clues about how to move forward.

It may take some time to debug and final modification of the first draft. If everything goes well, the first version of the document will be released on Women's Day. I hope this new document will be helpful to friends who like redis, you are also welcome to give your comments or suggestions on this document. Well.

Huangz
2013.2.28

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.