如果我将Redis ACL用于公共客户验证该怎么办?

发布于 2025-01-31 07:46:31 字数 281 浏览 2 评论 0原文

首先,我将Redis PubSub用作消息经纪人在客户之间传递实时消息,因为它的延迟较低。

我有一个想法将REDIS部署在公共端点,但在网关后面,并让用户直接连接到Redis。这将需要为每个用户创建ACL并将其发送用户名password。 ACL将用于限制客户仅访问那些允许的酒吧通道。

这个问题是

  1. 是否可以限制REDIS有多少个ACL?
  2. ACL的数量会影响性能吗?

First of all, I use Redis pubsub as a message broker to deliver real-time message between clients because it's low latency.

I have an idea to deploy Redis on a public endpoint but behind a gateway, and let the user connect to Redis directly. This will need to create ACL for each user and send them username and password. The ACL would be used to restrict the client's access to only those pubsub channels that were allowed.

The Question is

  1. Is there a limit to how many ACLs Redis can have?
  2. Does the number of ACL impact performance?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文