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 » MQ Trigger

Post new topic  Reply to topic
 MQ Trigger « View previous topic :: View next topic » 
Author Message
maxyen
PostPosted: Wed Aug 21, 2002 5:41 pm    Post subject: MQ Trigger Reply with quote

Newbie

Joined: 08 Aug 2002
Posts: 8

Is there any benefit using the trigger function or is it preferable to have a program running in batch and reading for incoming messgaes from the queue.

I heard that trigger function affects performance and it is faster to read the queue directly. Is it a true statement?

Thank-You in advance,
M.Y
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Aug 21, 2002 7:14 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7716

Of course it will be faster for a process to get a message from a queue that it is already waiting on then it would be to start up the process to go get a message from the queue.

But is it OK for your process to sit there in a blocked state waiting for a message to show up? What if the message doesn't show up for a day?

If messages will be arriving regulary, then go ahead and start the procees and let it run. It 's gonna be busy most of the time anyway. If the message arrival rate is sporadic (what happens between 4 and 6 AM for instance?) then trigger it with a reasonable wait period on the get. You'll start up when a message lands, proccess anything in the queue, wait awhile to see if anything else shows up, and then shut down, releasing system resources.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bduncan
PostPosted: Thu Aug 22, 2002 9:04 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Also keep in mind that if you just have a long-running process watching the queue and it dies, unless you have some other daemon, cron job, etc, that will start the application back up in a timely fashion, then your messages will simply pile up, whereas triggering can take care of such failures for you by retriggering the application (under certain conditions)
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQ Trigger
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.