ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » optimizing msgflow processing

Post new topic  Reply to topic
 optimizing msgflow processing « View previous topic :: View next topic » 
Author Message
neo_revolution
PostPosted: Tue Jun 01, 2004 4:38 am    Post subject: optimizing msgflow processing Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

Hello all,

We are getting msgs in xml. We are expecting higher volume of around 25000 msgs per day...

The problem we have is that,

-> for each incoming msg we need to check a flag in the database,

* if the flag is set msg flow routes the message to a queue,
* if it is not set msg flow routes to a hold queue which are processed as soon as db flag is set...

We have to check the db flag for each incoming msg as WMQI doesn't have memory to store the state...

With the above setup the processing time is quite a bit more.

Is there a better design to handle above situation?

Thanks.
Back to top
View user's profile Send private message Yahoo Messenger
Missam
PostPosted: Tue Jun 01, 2004 5:50 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Quote:

The problem we have is that,

-> for each incoming msg we need to check a flag in the database,


Can you skip the database operation here and store the values in localEnvironment.
Back to top
View user's profile Send private message
neo_revolution
PostPosted: Tue Jun 01, 2004 6:45 am    Post subject: Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

It it would be great if we skip the db access.

But how can we store information in the LocalEnvironment?

As soon as I process next message I will be loosing the LocalEnvironment tree, right?
Back to top
View user's profile Send private message Yahoo Messenger
Missam
PostPosted: Tue Jun 01, 2004 7:07 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Please look into ROW and LIST constructors in ESQL reference.you will get an idea how to do this.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 01, 2004 8:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I don't see how ROW and LIST constructors will help him add state to his message flow.

WMQI is not a stateful processing environment. You can use a database to hold state, or a queue, or a custom node that interacts with something else to hold state.

If the performance of your message flow, including your database select, is too slow, then you need to look at either speeding up the database lookup, siwtching to some other persistance mechanism, or increasing the efficiency of your message flow.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
neo_revolution
PostPosted: Tue Jun 01, 2004 8:34 am    Post subject: Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

Thats right Jeff. DB query is not an issue as the table is small, its the number of queries that matters.

With the present infrastructure we can't implement Pub/Sub immediately.

Actually what we are doing is, when the db flag is set we want to stop processing remaining msgs, either by stopping msg flow. To achieve this we are putting msgs onto a Hold queue and a trigger message is passed when db flag is set so that a job can copy msgs from hold queue to the input queue.

I am trying to get a better design so we can do this in a efficient manner.

Thanks
Back to top
View user's profile Send private message Yahoo Messenger
fazz
PostPosted: Tue Jun 01, 2004 8:48 am    Post subject: Reply with quote

Centurion

Joined: 20 Feb 2004
Posts: 144
Location: England

Theres a Cache node avaliable as a support pac (IA91)
Dosen't work on all platforms though.......
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Jun 01, 2004 8:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Create a separate flow, whose job it is to create PCF messages that Get-Disable the main queue.

Send a disable message to the new flow when you want to stop processing, and an enable message to the new flow when you want to start processing.

Then your main input queue becomes your "Hold" queue.
_________________
I am *not* the model of the modern major general.


Last edited by jefflowrey on Tue Jun 01, 2004 9:23 am; edited 1 time in total
Back to top
View user's profile Send private message
neo_revolution
PostPosted: Tue Jun 01, 2004 9:07 am    Post subject: Reply with quote

Voyager

Joined: 21 Oct 2003
Posts: 80
Location: NJ

But I read in the forum that this is not supported by IBM !!!
Back to top
View user's profile Send private message Yahoo Messenger
fazz
PostPosted: Tue Jun 01, 2004 9:15 am    Post subject: Reply with quote

Centurion

Joined: 20 Feb 2004
Posts: 144
Location: England

Well......No.

Think Jeffs on to more of a winner.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » optimizing msgflow processing
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.