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

查看:115
本文介绍了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天全站免登陆