Message Groups in RabbitMQ / AMQP

。_饼干妹妹 提交于 2019-12-04 03:07:50

问题


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 .

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


回答1:


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.

Reference: https://twitter.com/old_sound/status/410898209788411904



来源:https://stackoverflow.com/questions/20530591/message-groups-in-rabbitmq-amqp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!