用户消息使用哪个消息队列
我有一个应用程序(龙卷风),用户可以在其中相互发送/接收私人消息,也可以公开聊天。我正在使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.