Author |
Message
|
aggarwal.intouch |
Posted: Wed Sep 18, 2013 6:48 am Post subject: MQ based asynchronous req-res scenario |
|
|
 Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
|
Hi Experts,
I need your advice and suggestion for one of the scenario. I want to setup an asynchronous request and response kind of scenario based on MQ protocol. If I will use the MQ GET node it will create the synchronous calls. Could you please suggest me some alternative way so that I can implement the same in my message flow.
I am working on WMB & MQ 7.0 version. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 18, 2013 6:52 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Two flows, each with an MQInput node.
There's a sample. |
|
Back to top |
|
 |
aggarwal.intouch |
Posted: Wed Sep 18, 2013 6:55 am Post subject: |
|
|
 Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
|
@Master - Could you please help me with the link of the message flows? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 18, 2013 7:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aggarwal.intouch wrote: |
Could you please help me with the link of the message flows? |
What (in terms of your design) correlates the request with the response?
Use that to link the flows. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
aggarwal.intouch |
Posted: Wed Sep 18, 2013 7:07 am Post subject: |
|
|
 Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
|
@Grand - Like when we use the MQ Get node that uses the correlation id to link the original message with response but in synchronous manner.
How we will achieve the same using correlation id without using the MQ Get node in asynchronous manner? I want my flow to be running if in case I am not getting any response for any of the request.
Please Suggest |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 18, 2013 7:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aggarwal.intouch wrote: |
How we will achieve the same using correlation id without using the MQ Get node in asynchronous manner? |
By using something in the message that isn't the id
aggarwal.intouch wrote: |
I want my flow to be running if in case I am not getting any response for any of the request. |
Now this makes no sense whatsoever. If you're using an asyncronous model (i.e. nothing is waiting for a reply) how will you know if 1 (or all) of the responses are not turning up? Nothing's waiting for them so what will detect their non-arrival?
If I've invited my friends to dinner at 8pm, non-arrival by 8pm means their missing. If I've invited them round to dinner anytime, I'm not expecting them and won't know if they're late or not coming at all.
Explain more clearly please. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
aggarwal.intouch |
Posted: Wed Sep 18, 2013 7:27 am Post subject: |
|
|
 Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
|
Vitor wrote: |
If you're using an asyncronous model (i.e. nothing is waiting for a reply) how will you know if 1 (or all) of the responses are not turning up? |
My main aim is to relate the coming responses with the correct request message. For the request message for which no response is coming I will not wait for them. <Fire and Forget>
I found on google that in WMB 8.0 version we could do achieve the same using the global cache. I am looking for the same kind of solution in WMB 7.0 |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 18, 2013 7:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's a Sample in the Samples Gallery.
GlobalCache is the wrong solution for this anyway. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 18, 2013 7:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aggarwal.intouch wrote: |
My main aim is to relate the coming responses with the correct request message. For the request message for which no response is coming I will not wait for them. <Fire and Forget> |
Fire & Forget is not Request / Response.
If you're not waiting for the responses, why do they need to be correlated with a specific request?
aggarwal.intouch wrote: |
I found on google that in WMB 8.0 version we could do achieve the same using the global cache. |
No you couldn't. Or perhaps more accurately you shouldn't. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
aggarwal.intouch |
Posted: Wed Sep 18, 2013 7:43 am Post subject: |
|
|
 Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
|
Sample in gallery is pointing towards the synchronous example by using the mq get node.
I was looking for asynchronous scenario. Please correct me if my understanding is wrong. Please guide me with link to avoid any confusion. |
|
Back to top |
|
 |
sumit |
Posted: Wed Sep 18, 2013 7:53 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
In my opinion it's better if you clearly explains what you are looking for and what have you tried for it. I am not sure if others understood it well, but I am still not clear with the requirement/design.
Suppose you send 5 requests then you receive response of 4th request (async way). After 10 mins, you receive response of 1st request. How are you going to validate if this response belongs to first request (at broker level).
At least I am not clear with the requirement.  _________________ Regards
Sumit |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 18, 2013 9:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
aggarwal.intouch wrote: |
I was looking for asynchronous scenario. |
I still don't understand why. You need to explain the requirement more clearly.
aggarwal.intouch wrote: |
Please correct me if my understanding is wrong. |
Well I think it might be. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 18, 2013 9:36 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Two MQInput nodes is asynchronous.
You don't need any sort of caching to correlate messages in MQ. |
|
Back to top |
|
 |
JosephGramig |
Posted: Wed Sep 18, 2013 12:01 pm Post subject: Re: MQ based asynchronous req-res scenario |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
aggarwal.intouch wrote: |
Hi Experts,
I need your advice and suggestion for one of the scenario. I want to setup an asynchronous request and response kind of scenario based on MQ protocol. If I will use the MQ GET node it will create the synchronous calls. Could you please suggest me some alternative way so that I can implement the same in my message flow.
I am working on WMB & MQ 7.0 version. |
Are you saying you want to save some information from the request somewhere to be correlated with the response when it comes back?
But asynchronously... |
|
Back to top |
|
 |
aggarwal.intouch |
Posted: Wed Sep 18, 2013 7:14 pm Post subject: Re: MQ based asynchronous req-res scenario |
|
|
 Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
|
JosephGramig wrote: |
Are you saying you want to save some information from the request somewhere to be correlated with the response when it comes back?
But asynchronously... |
Your understanding is absolutely correct. Need some suggestions to achieve this. |
|
Back to top |
|
 |
|