AMQ Address with multiple clients to a multicast queue

半城伤御伤魂 提交于 2020-01-06 05:38:07

问题


My query is for the product Red Hat AMQ 7.X (and I am using 7.2), which is based on Apache ActiveMQ Artemis and a .Net client connecting to the queue using AMQP protocol.

An Artemis article discusses unicast (point-to-point), multicast (publish-subscribe) and a combination of these addressing: https://activemq.apache.org/artemis/docs/2.0.0/address-model.html

It does not detail the case of two consumers connecting to the same multicast queue under an address. Our requirement is to

  • Have pub-sub model of communication, with the publisher publishing to a multicast address.
  • Have many queues that can take action based on the published message, say one queue for "FollowupJob" and another for "MailerComponent".
  • Have X number of consumers - "MailerComponent" connect to one queue to distribute the load so that the messages delivered to that queue is distributed between the X consumers in a round robin fashion.

A later section describes such a configuration: https://activemq.apache.org/artemis/docs/2.0.0/address-model.html#configuring-a-shared-durable-subscription-queue-with-up-to-10-concurrent-consumers It seems to meet my need, but I wanted to double-check as the explanation above did not cover this scenario.


回答1:


Any queue (whether multicast or anycast) can support multiple consumers unless you've set max-consumers to 1 or exclusive to true.



来源:https://stackoverflow.com/questions/51559207/amq-address-with-multiple-clients-to-a-multicast-queue

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