RabbitMQ/AMQP 中的消息组 [英] Message Groups in RabbitMQ / AMQP

查看:41
本文介绍了RabbitMQ/AMQP 中的消息组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ActiveMQ/JMS 有一个内置机制,用于确保在使用竞争消费者模式时,共享公共标头(即 JMSXGroupID 标头)的消息始终由队列的同一消费者使用.队列的消费者完全不知道实际的标头值,因为具有公共标头的消息的保证是在服务器端而不是消费者端执行的.有关其工作原理的更多详细信息,请参阅 http://activemq.apache.org/message-groups.html .

ActiveMQ / JMS has a built in-mechanism for ensuring that messages that share a common header (namely, the JMSXGroupID header) are always consumed by the same consumer of a queue when using a competing consumers pattern. The consumers of a queue are completely agnostic of the actual header values, as the guarantee of messages with a common header is performed server-side and not consumer-side. For more details on how this works, see http://activemq.apache.org/message-groups.html .

用 AMQP 或 RabbitMQ 特定的东西可以做这样的事情吗?

Is doing such a thing possible with AMQP or with something RabbitMQ specific?

推荐答案

截至撰写此答案时,仅使用 AMQP 是不可能的,需要在应用程序方面进行工作.RabbitMQ 计划在未来实现类似的功能,但不会很快发布或开发.

As of the time this answer is written, this is not possible with AMQP alone and will require work on the application side of things. RabbitMQ plans on implementing something like this in the future, but it is not slated for release or development anytime soon.

参考:https://twitter.com/old_sound/status/410898209788411904

这篇关于RabbitMQ/AMQP 中的消息组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆