Source blog.csdn.net/yangbodong2…

github.com/hurley25

Github.com/hurley25/AN…

ANet simple network library based on Redis network model, network module code from Redis source code. The Redis network model is a single-threaded, non-blocking model that uses IO multiplexing. The advantage of this model is that single threads do not need to consider locking, which can be maximized in a single-core environment. \

\

I. Introduction

Say Redis: introduce Redis features, usage scenarios, using Jedis operation Redis, etc.

Second, source code analysis

1. Data structure

Redis source code analysis (SDS) : Redis itself encapsulated C language string type.

Redis source Code Analysis (dict) : dictionary implementation, Hash table.

Redis source code analysis (ADList) : Redis bidirectional linked list.

Redis source code analysis (skiplist) : Redis skiplist, O(log n) average query efficiency.

2. Memory encoded data structure

3. Data type realization

4. Database implementation related

5. Relevant codes of client and server

Redis network library source analysis (1) introduction: Redis own implementation of single-thread IO multiplexing network library analysis (1)

Redis network library source analysis (2) start server: Redis own implementation of single-thread IO multiplexing network library analysis (2)

Ae.c: Redis own implementation of single-thread IO multiplexing network library analysis (3)

Third, other

Redis INFO CPU information Description: Information about the CPU displayed on the INFO CPU.

ShardedJedisPipeline source code analysis: Jedis distributed pipeline submission source code analysis.

Redis monitoring research: conducted research on the monitoring provided by Redis cache providers of some public cloud platforms and some open source Redis monitoring tools.

\