|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Pub/Sub best practises |
« View previous topic :: View next topic » |
Author |
Message
|
kali2012 |
Posted: Thu Mar 22, 2012 9:11 am Post subject: MQ Pub/Sub best practises |
|
|
Newbie
Joined: 21 Mar 2012 Posts: 8
|
Env MQ 7.1 client .net client
New to MQ . I was able to run pub sub sample that come up with MQ installation. Sample is very simple in the sense , good for learning but not for real world problems.
I'm looking for best practises/Patterns for Pub/Sub using MQ. I did below steps
Using MQ Explorer
1. created Queue Manager
2. Created Queue
3. Created Topic
4. Created Subscription. Provided Topic name and Topic string as in Topics created in step 3. Also Updated Destination Queue Manager and Destination Name with step 1 and 2 respectively. My understanding was subscriber will look for published messages matching the topic and will update the queue as in step2
5. Published message using .net client
6. I can see the message in the queue .
does the above steps make sense?,. Anny feedback apreciated. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 22, 2012 9:30 am Post subject: Re: MQ Pub/Sub best practises |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kali2012 wrote: |
My understanding was subscriber will look for published messages matching the topic and will update the queue as in step2 |
Depends on the type of subscription. Under other circumstances the publication wil be made to available subscribers (which is subtly different).
kali2012 wrote: |
Sample is very simple in the sense , good for learning but not for real world problems |
Even better for learning is the publish / subscribe documentation, which among other things explains the various publication & subscription models (to which my comment above applies).
What do you mean by "real world problems"? The question "how do I use pub/sub in the real world" is too broad to be answered here. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kali2012 |
Posted: Thu Mar 22, 2012 9:41 am Post subject: |
|
|
Newbie
Joined: 21 Mar 2012 Posts: 8
|
Thanks Vitor for pointing other variation. Are those steps correct for the scenario I was playing with?. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 22, 2012 10:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kali2012 wrote: |
Are those steps correct for the scenario I was playing with?. |
You said you saw the correct message in the subscribing queue; it therefore worked correctly. Is that the only way to achieve that result in the simplistic scenario you describe? No. Is it the best way to handle real world pub / sub? Maybe. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|