用户消息使用哪个消息队列

发布于 2024-12-21 14:38:51 字数 230 浏览 5 评论 0原文

我有一个应用程序(龙卷风),用户可以在其中相互发送/接收私人消息,也可以公开聊天。我正在使用 redis (brukva) pub/sub 消息传递进行实时聊天,但我无法决定应该使用哪个消息传递队列系统来进行私人消息传递部分,因为在单个 post/get 请求中发送和处理消息是不现实的。我认为队列会通过在后台处理消息来解决这个问题。 redis 是否可以被视为这里的选项,或者我应该使用其他消息队列结构?对于该特定用例有任何队列建议吗?为什么?

I have application (tornado) where users can send/recieve private mesaages to/from each other and also can chat publicly. I am using redis (brukva) pub/sub mesaaging for realtime chat but I cant decide which mesaaging queue system should I use for private messaging part since its not realistic to send and process messages in a single post/get request. I think queue will resolve this problem by processing messages in the background. Is redis can be considered as option in here or should I go with other messaging queue structures ? Any queue suggestions for that particular use case and why ??

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧瑾黎汐 2024-12-28 14:38:51

Redis List 数据结构构成了一个完美的队列,具有原子 push/pop 操作以及您期望从队列中获得的所有其他内容。

The Redis List data structure makes a perfect queue, with atomic push/pop operations and everything else you would expect from a queue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文