Author |
Message
|
svmmq |
Posted: Thu Mar 19, 2015 7:00 am Post subject: pub/sub and use of clustered topics |
|
|
Newbie
Joined: 19 Mar 2015 Posts: 6
|
Hi,
I have been running some tests with pub/sub to better understand the relationship between topics, subscribers and publishers. I have pub/sub environment defined which includes 4 qmgrs in the cluster. I have defined a non-clustered topic on QMGRA and a subscription on that topic on QMGRB. When I publish to the topic on QMGRA the message does not flow to the queue associated with my subscription on QMGRB. I have both the topic and the subscription defined with SUBSCOPE(ANY).
Question: Does the topic needs to be defined as a clustered topic in order for a published message to flow to a subscription on another QMGR in the cluster?
Thanks
Shannon |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 19, 2015 8:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
|
Back to top |
|
 |
svmmq |
Posted: Fri Mar 20, 2015 4:29 am Post subject: |
|
|
Newbie
Joined: 19 Mar 2015 Posts: 6
|
Thanks.
We are just delving into pub/sub and everything I read about clustered topics makes me wary of using them.
To make sure I understand your comment...
When you say 'think about having it cluster routed' are you saying to define the unclustered topic and subscription on the same queue manager and then use regular MQ clustering to have the message routed to another queue manager in the cluster?
Shannon |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Mar 20, 2015 4:54 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
svmmq wrote: |
Thanks.
We are just delving into pub/sub and everything I read about clustered topics makes me wary of using them.
To make sure I understand your comment...
When you say 'think about having it cluster routed' are you saying to define the unclustered topic and subscription on the same queue manager and then use regular MQ clustering to have the message routed to another queue manager in the cluster?
Shannon |
No I am saying define the cluster topic on a specific 'topic host' qmgr in the cluster. In the topic set the routing to cluster/topic host routed (V8 feature). This means that instead of being propagated across the whole cluster, publications and proxy subs will be held at the qmgr(s) that hosts the clustered topic. (Reduces traffic inside the cluster) Read again the manual on that subject. Use your play ground to determine the difference with direct routed and cluster/topic host routed clustered topics...
Make sure you set publication and subscription scope to ALL when defining the clustered topic.
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
svmmq |
Posted: Mon Mar 23, 2015 4:31 am Post subject: |
|
|
Newbie
Joined: 19 Mar 2015 Posts: 6
|
Thanks. This has been very helpful. We are not at v8 yet but will keep this in my back pocket.
Shannon |
|
Back to top |
|
 |
|