Why does a single-threaded redis reach the processing speed per second?

Source: Internet
Author: User
Tags epoll
  1. Pure memory access, Redis puts all of the data in memory, and memory response time is approximately 100 nanoseconds, which is an important foundation for Redis's access to universal levels per second.
  2. Non-blocking Io,redis uses epoll as the implementation of IO multiplexing, and the Redis own event processing model transforms link, read-write, and shutdown in Epoll into events, not wasting too much on network IO.
  3. Single threading avoids thread switching and the consumption of the resulting state.
    1. Single thread simplifies data structure and algorithm implementation.
    2. Single-threaded to avoid thread switching and the consumption of the resulting state.
    Disadvantage: If the command executes the time process, other commands will be blocked.

Why does a single-threaded redis reach the processing speed per second?

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.