首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

深入Redis内部-Redis 源码讲授【转】

2012-07-20 
深入Redis内部-Redis 源码讲解【转】Redis 作为 NoSQL 数据库的杰出代表,一直广受关注,其轻量级的敏捷架构,

深入Redis内部-Redis 源码讲解【转】

Redis 作为 NoSQL 数据库的杰出代表,一直广受关注,其轻量级的敏捷架构,向来有存储中的瑞士军刀之称。下面推荐的一篇文章,从源码的角度讲解了Redis 的整个工作流程,是了解 Redis 流程的绝佳文章。强烈推荐:

原文链接:Redis: under the hood

目录:

StartupBeginning global server state initializationSetting up command tableLoading config fileinitServer()Shared objectsShared integersEvent loopDatabasesTCP socketServer cronRegistering connection handler with event loopOpening the AOFBack up to?main() Restoring dataEvent loop setupEntering the event loopProcessing a request & returning a responseHandling a new connectionReading a command from a clientExecuting the command and respondingSummaryNext time — tracing a?SET and?GET

Redis 启动流程图:

深入Redis内部-Redis 源码讲授【转】

Redis 命令处理流程图:

深入Redis内部-Redis 源码讲授【转】

热点排行