深入Redis内部-Redis 源码讲解
生活随笔
收集整理的這篇文章主要介紹了
深入Redis内部-Redis 源码讲解
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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 命令處理流程圖:
總結
以上是生活随笔為你收集整理的深入Redis内部-Redis 源码讲解的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C shell命令行解释器
- 下一篇: SQLite学习(三) - SQLite