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

capability of redis in handling 'N' no of connections?

本文关键字:连接 处理 能力 redis      更新时间:2023-09-26

如果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.