javascript - redis 处理 'N' 没有连接的能力?

标签 javascript jquery node.js redis

如果有任何关于 Redis 的性能测量 它可以同时处理多少个订阅/ channel ?

最佳答案

我还没有看到这方面的基准,但推送到订阅 channel 的复杂性在 O(N) 系列中。 来自文档:

发布:

O(N+M) where N is the number of clients subscribed to the
receiving channel and M is the total number of subscribed 
patterns (by any client).

PSUBSCRIBE(订阅模式):

O(N) where N is the number of patterns the client is already subscribed to.

订阅:

O(N) where N is the number of channels to subscribe to.

关于javascript - redis 处理 'N' 没有连接的能力?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9614042/

相关文章:

javascript - Bootstrap 3 从 URL 展开 Accordion

javascript - JSON元素检测

javascript - 基于轮播的图像库,带有缩略图和标题

php - 使用单个输入框 Ajax 搜索多个参数

javascript - 在文本区域中保留新行和空格不起作用

node.js - npm 脚本同时运行 redis-server、mongod 和 nodemon

javascript - jQuery、ajax 和 php 网络爬虫行为异常

javascript - http 查询在 Nodejs/AngularJS 环境中无法通过

javascript - Mongoose/Mongodb findOneAndUpdate 同时保留已有内容

javascript - jQuery "array"返回未定义