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

时间:2012-03-08 07:06:49

标签: javascript jquery node.js redis

如果使用Redis进行任何性能测量 它可以处理多少个同时订阅/频道?

1 个答案:

答案 0 :(得分:1)

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

PUBLISH:

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.

SUBSCRIBE:

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