我怎么知道在redis pub-sub中排队的消息数?

How can I know the number of messages queued in redis pub-sub?

Amazon SQS 给出了可用和正在发送的消息的直接数量,有没有办法查看 redis pub-sub 中可用消息的数量?

Redis 的 PubSub 是一劳永逸的,这意味着没有可用或正在发送的消息数量(换句话说,它始终为 0)。

存在 PUBSUB command that tells you about the current channels and subscribers. The same for INFO stats.