Redis Event Control Flow analysis

Source: Internet
Author: User
I. Overview
  这里分析的主要是单机Redis服务器部分的事件控制流。本文配合Redis源码与《Redis设计与实现》一同食用口味更佳。  Redis服务器采用的是基于事件驱动的单进程单线程模式,事件分为两大类:文件事件与时间事件。  I/O多路复用的底层实现根据性能以及系统支持情况,按照evport、epoll、kqueue与select中选取。


Ii. Event Control Flow
  没有按照正规的控制流程图来画,所使用的符号是自己平时惯常使用的那一套。



(Image has been added Chyauang watermark)

Footnote

These reading notes are usually recorded at the time of reading, and have been scattered all over the place, and hereby concentrate them together for future review.

Redis Event Control Flow analysis

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.