深入Redis内部-Redis 源码讲解
来源:互联网 发布:appstore美区软件 编辑:程序博客网 时间:2024/04/30 07:48
Redis 作为 NoSQL 数据库的杰出代表,一直广受关注,其轻量级的敏捷架构,向来有存储中的瑞士军刀之称。下面推荐的一篇文章,从源码的角度讲解了Redis 的整个工作流程,是了解 Redis 流程的绝佳文章。强烈推荐:
原文链接:Redis: under the hood
目录:
- Startup
- Beginning global server state initialization
- Setting up command table
- Loading config file
- initServer()
- Shared objects
- Shared integers
- Event loop
- Databases
- TCP socket
- Server cron
- Registering connection handler with event loop
- Opening the AOF
- Shared objects
- Back up to main()
- Restoring data
- Event loop setup
- Entering the event loop
- Processing a request & returning a response
- Handling a new connection
- Reading a command from a client
- Executing the command and responding
- Summary
- Next time — tracing a SET and GET
Redis 启动流程图:
Redis 命令处理流程图:
0 0
- 深入Redis内部-Redis 源码讲解
- 深入Redis内部-Redis 源码讲解
- 深入redis内部--实现字符串
- 深入redis内部--字典实现
- 深入redis内部--内存管理
- 深入redis内部---网络编程
- 深入redis内部--初始化服务器
- 深入redis内部--实现双向链表
- 深入redis内部--字典实现(未完成)
- 深入redis内部--事件处理机制
- 深入redis内部之redis启动过程之一
- 深入redis内部之redis启动过程之二
- 【Redis入门】内部数据结构源码剖析
- redis讲解
- 【Redis深入】aof与reaof源码剖析
- redis源码分析 dict字典的实现和内部应用
- Redis 源码解析 string内部实现原理之链表
- Redis的内部数据结构
- 修复Genymotion无法启动的问题
- 《网蜂A8实战演练》——7.Linux LCD设备驱动
- [字典树、map] HDU 1800 - Flying to the Mars
- 实验4(统计文本单词个数)
- hdu5105(求一元三次方程的最值)
- 深入Redis内部-Redis 源码讲解
- 使用装饰模式来看接口
- fgbfbgbvnvbn
- 解决无法删除的dll文件
- 新博客开始
- Two Sum
- 实验4(幻方)
- qt4.X编译qtcreator2.8
- Escape(匈牙利算法变形)