|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Broker Parallel Processing |
« View previous topic :: View next topic » |
Author |
Message
|
sankarD |
Posted: Sun Jan 15, 2012 10:57 pm Post subject: Message Broker Parallel Processing |
|
|
Newbie
Joined: 24 Nov 2010 Posts: 7
|
Hi Everyone,
We have one of the requirement scenario like this.
In a Message flow we need to invoke two web services at a time, combine the response form those two services and generate a aggregate message.
We can implement the parallel processing using aggregate nodes in Message Broker, If we are using aggregate nodes we need to depend on Reply Queue mechanism, With out using temporary queues will be there be any other options to achieve Parallel processing in Message Broker version 7.
Can some one share your opinions on this how to achieve Parallel processing in Message Broker.
Thanks in advance !!! |
|
Back to top |
|
 |
cociu_2012 |
Posted: Sun Jan 15, 2012 11:57 pm Post subject: Re: Message Broker Parallel Processing |
|
|
Acolyte
Joined: 06 Jan 2012 Posts: 72
|
sankarD wrote: |
Hi Everyone,
We have one of the requirement scenario like this.
In a Message flow we need to invoke two web services at a time, combine the response form those two services and generate a aggregate message.
We can implement the parallel processing using aggregate nodes in Message Broker, If we are using aggregate nodes we need to depend on Reply Queue mechanism, With out using temporary queues will be there be any other options to achieve Parallel processing in Message Broker version 7.
Can some one share your opinions on this how to achieve Parallel processing in Message Broker.
Thanks in advance !!! |
Hello,
there is no such thing as "parallel processing" in WMB. (I haven't worked with WMB 7 yet, but I read changelogs and I haven't seen this feature, and frankly It's even stupid to assume that broker will ever do that). The only parallel processing you can get is http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbz90180_.htm&resultof=%22aggregate%22%20%22aggreg%22%20, but that's not your question.
Info Center has a good page about aggregation : http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fbb45000_.htm, but that's also not good for you.
You really should push back the requirements, and say that calling 2 WS at the same time is nearly impossible, and probably that's just your impression that you should call them at the same time.
What's wrong calling WS's "sequential" store ( DB, Environment, what suits you best) each call, and compose your final response. |
|
Back to top |
|
 |
zpat |
Posted: Mon Jan 16, 2012 12:30 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
If your aim is to overlap processing to reduce elapse time, there any several ways you could do this by invoking another flow asynchronously.
You have already mentioned using MQ queues and I don't see the problem with this approach. If you don't want to use temporary queues then use the standard request/reply model whereby you get your own reply matching on correlid on a shared queue.
So you could fire off two requests using MQ to other flows that do the WS calls and return the response in the same reply queue (setting the reply message correlid to the request msgid). In the main flow you have two MQGETs which match on correlid to get both replies (or timeout in the attempt).
All this just shows why MQ is better than other protocols like WS. Why not use it end to end? Make sure any messages which are retrieved selectively have an expiry value set to ensure that they don't hang around if marooned. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jan 16, 2012 6:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Use aggregation in the main flow.
Use 2 different flows to do the WS calls.
This should be textbook aggregation pattern  _________________ 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
|
|
|
|