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 » General Discussion » Triggering Versus Extended Get Wait

Post new topic  Reply to topic
 Triggering Versus Extended Get Wait « View previous topic :: View next topic » 
Author Message
Chas
PostPosted: Thu Mar 06, 2003 7:07 am    Post subject: Triggering Versus Extended Get Wait Reply with quote

Newbie

Joined: 04 Oct 2002
Posts: 5

I am currently pondering over the relative merits of using an extended get wait time on a local queue against a trigger depth of one.

The system I am working on will have a significant number of local queues to service - with frequent traffic.

Any ideas and opinions would be most welcome.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 06, 2003 7:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Any trigger monitor you use will open the initiation queue with an extended get wait time.

Deciding between using triggers versus a listener model is an application design decision, that should be based on expected message traffic patterns and application considerations.

Are your messages going to come in as clumps, or a steady stream of individual messages? Are messages going to arrive in large batches or small? Is the chronological spacing between each message likely to be large, or small? Is there a high overhead for starting a new process from a trigger? Do you need to maintain persistant information (like a database connection) between invocations of your program? Does your program make heavy useage of system resources that need to be available to other processes?
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Mar 06, 2003 8:09 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Triggering causes an overhead as trigger messages are PUT and GET in addition to the application data messages.

For frequent messages I would generally recommend the model with an outstanding GET with WAIT. You might want to code the WAIT for say 60 seconds before checking for any request to close your application down (and don't forget to use FAIL_IF_QUIESCING as well). Then repeat the GET with WAIT of course if the application is not closing down.

I try to design all such server applications so that multiple instances can be running and will compete for incoming messages from the same queue - this provides a simple way to scale the application or have load-balancing or failover (or both).

You might consider why you are using many queues, if these are ending up using the same application - why not use a single request queue? If you need different reply queues then the name of the reply queue can be passed in the "reply-to-queue" field of the incoming message.
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 » General Discussion » Triggering Versus Extended Get Wait
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.