0

all,

Background: now client produces many messages of different labels.Consumers may subscribe some labels of them(different consumer need different labels's msgs). Now method: I used direct exchange in rabbitmq, consumer declared queue for itself, exchange distribute msgs to these queues. Problem: there exsit many redundant msgs in queues which effects the performance.

A topic type in activemq supports user a method to distribute a msg to many subscribers, which need not creates large number queues for subscribers. Does exsit a method in rabbitmq, or some suggestions to solve the problem?

6
  • are the messages redundant or the queues?
    – robthewolf
    May 7, 2013 at 12:28
  • the queues. i just want a msg(routing_key label1) broadcast/Multicast to consumer(interested at label1), which subsribe it. But now, the msg sends to different queues(need lagrely memory).
    – Aaron Chen
    May 7, 2013 at 13:56
  • I understand that English may not be your first language but I am struggling to understand you. Are you creating queues and then not reading from them? Or reading from them and then stopping reading from them. If so you need to make them autodelete queues, when you are done with them disconnect from them, once disconnected they will disappear.
    – robthewolf
    May 7, 2013 at 14:01
  • Thxs. i mean: in activemq, activemq can distribute a msg to many subsribers with multicast. In rabbitmq, exchange will distribute msg to each queue, and then consumer read it from queue. The msg exsit too many copys in memory if i have 100+ consumers. Thank you for help me.
    – Aaron Chen
    May 7, 2013 at 14:13
  • sorry I cant help I only know about rabbit mq. I didnt understand that was what you meant.
    – robthewolf
    May 7, 2013 at 14:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.