53

Redis为什么是单线程?为什么有如此高的性能?

 5 years ago
source link: https://juejin.im/post/5caae9876fb9a05e1530288b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一、Redis为什么是单线程 注意:redis 单线程指的是网络请求模块使用了一个线程,即一个线程处理所有网络请求,其他模块仍用了多个线程。 因为CPU不是Redis的瓶颈。Redis的瓶颈最有可能是机器内存或者网络带宽,既然单线程容易实现,而且CPU不会成为

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK