Search code examples
duplicatescompareibm-mqmq

Queue data publish/duplicate


I am using IBM webSphere MQ 7.5 server as queue manager for my applications.
Already I am receiving data through single queue.

On the other hand there are 3 applications that want to process data.
I have 3 solutions to duplicate/distribute data between them.

  1. Use broker to duplicate 1 to 3 queue - I don't have broker so it is not accessible for me.
  2. Write an application to get from queue and put them in other 3 queues on same machine
  3. Define publish/subscribe definitions to publish input queue to 3 queues on same machine.

I want to know which methods (2 & 3) is preferred and have higher performance and acceptable operational management effort.


Solution

  • Based on the description I would say that going PubSub would achieve the goal; try to thinking in pure PubSub terms rather than thinking about the queues. i.e. You have an application that publishes to a topic with then 3 applications each having their own subscription to get copies of the message.

    You then have the flexibility to define durable/nondurable subscriptons for example.