|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Trigger |
« View previous topic :: View next topic » |
Author |
Message
|
maxyen |
Posted: Wed Aug 21, 2002 5:41 pm Post subject: MQ Trigger |
|
|
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 |
|
 |
PeterPotkay |
Posted: Wed Aug 21, 2002 7:14 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
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 |
|
 |
bduncan |
Posted: Thu Aug 22, 2002 9:04 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|