|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How subscription works in broker collective ? |
« View previous topic :: View next topic » |
Author |
Message
|
WBI_user |
Posted: Mon Jul 17, 2006 1:18 pm Post subject: How subscription works in broker collective ? |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Just try to understand how sub work in a broker collective.
If I understand the manuals correctly. A subscriber only need to register it interest on a topic to any one broker within the collective. The subscriber's interest will be propagated to other brokers within the collective.
Here are 2 scenarios and my questions:
For example, I have BK1, BK2 and BK3 in a collective. A subscriber register to BK1 on Topic STOCK/IBM/# and the subscriber queue is MYQ on SUB_QM.
Scenario 1
When a publication STOCK/IBM/PRICE is send to BK1, BK1 will put the message to MYQ on SUB_QM. Am I right ?
Will BK1 send the publication to BK2 and BK3 also ? If yes, will BK2 and BK3 also send the publication to MYQ on SUB_QM ? I suspect not because this will result in duplication. ?
Scenario 2
If a publication STOCK/IBM/PRICE is send to BK2 , what will BK2 do with the publication ? BK2 is aware that the subscriber has subscribed on BK1 for the topic. Will it forward the publication the BK1 so that it can send it to MYQ on SUB_QM ? or will it send it directly to MYQ on SUB_QM ?
The manual talks about global and lcoal publication and subscriptions. But never explicity say how to set up global publication and subscription. I am assuming that if I do not specify local in the publication or subscription, it will be global. Am I right ? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 17, 2006 2:19 pm Post subject: Re: How subscription works in broker collective ? |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
WBI_user wrote: |
For example, I have BK1, BK2 and BK3 in a collective. A subscriber register to BK1 on Topic STOCK/IBM/# and the subscriber queue is MYQ on SUB_QM.
Scenario 1
When a publication STOCK/IBM/PRICE is send to BK1, BK1 will put the message to MYQ on SUB_QM. Am I right ? |
Yes
WBI_user wrote: |
Will BK1 send the publication to BK2 and BK3 also ? If yes, will BK2 and BK3 also send the publication to MYQ on SUB_QM ? I suspect not because this will result in duplication. ?
|
The publication will only be forwarded to the other brokers (BK2, BK3) if they have at least one subscriber for it. The subscription is not forwarded to the other brokers only the publication is (if there is an interest for it).
WBI_user wrote: |
Scenario 2
If a publication STOCK/IBM/PRICE is send to BK2 , what will BK2 do with the publication ? BK2 is aware that the subscriber has subscribed on BK1 for the topic. Will it forward the publication the BK1 so that it can send it to MYQ on SUB_QM ? or will it send it directly to MYQ on SUB_QM ? |
BK2 will forward the publication to BK1 which (BK1)will deliver it to the subscription.
WBI_user wrote: |
The manual talks about global and lcoal publication and subscriptions. But never explicity say how to set up global publication and subscription. I am assuming that if I do not specify local in the publication or subscription, it will be global. Am I right ? |
Don't know but I suppose. Have you checked the options for pub / sub in IH03 ?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
WBI_user |
Posted: Mon Jul 17, 2006 2:35 pm Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Thanks fjb_saper, Doc of IH03 did not specifically say that if not local, it is global. I did not find any options for global in any manual I read so far. That why I ask if my assumption is right.
So If I understand you correctly, it is only the BK that received the subscription will forward the message to the subscriber. But I think the advantage of broker collective is to allow subscriber to subscribe to its nearest broker. I a subscriber moved from city A to city B, he should cancel his subscription with the broker in city A and subscribe witht he borker in city B. Am I right ?
This will make failover difficult. If the borker in city A fail, then all subscriber originally on city A broker will have to re-subscribe to the city B broker. Is this the only way ? Is there any better suggestion for failover ? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 18, 2006 3:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you looked at clones in the pub / sub model?
The admin is much more difficult but it would probably achieve what you are looking for...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|