作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的基本理解是Redis中的所有操作都是单线程的。在 Redis-6 中有多线程 I/O .. 我只是好奇如果所有 I/O 线程仍然需要等待执行所有查询的单线程,这有什么优势?我希望有人可以提供一些示例工作负载来说明优点或缺点。
最佳答案
My basic understanding is that all operations in Redis are single threaded.
I'm just curious what advantage this has if all the I/O threads still need to wait on the single thread that does all the querying?
io-threads
)中进行写入操作,Redis可以处理更多的请求,并且速度更快。
io-threads-do-reads
),但是,Redis 团队声称通常没有太大帮助(通常线程读取没有太大帮助。--引用来自
redis.conf)。
someone could provide some example work loads that would illustrate the advantages or disadvantages.
关于redis - Redis 6 中的多线程 I/O 在哪些类型的工作负载中有所作为?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62618284/
我是一名优秀的程序员,十分优秀!