【发布时间】:2012-03-25 17:20:22
【问题描述】:
如果对 Redis 有任何性能测量 它可以同时处理多少个订阅/频道?
【问题讨论】:
标签: javascript jquery node.js redis
如果对 Redis 有任何性能测量 它可以同时处理多少个订阅/频道?
【问题讨论】:
标签: javascript jquery node.js redis
我还没有看到这方面的基准,但推送到订阅频道的复杂性在 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.
【讨论】: