Redis pub sub max subscribers and publishers
问题 Could anyone tell me whats the maximum number of concurrent channels Redis pub-sub can support?. Is there any cap to the number of subscribers and publishers 回答1: Redis uses a dict , same struct as for keys, to store channel subscriptions, both per client and for all clients (keeps a per-subscription hash with a list of clients subscribed), so it is up to 2^32 channel subscriptions in total. It uses a list to store pattern subscriptions per client, so it is theoretically limited only by the