| Author | Message | 
		
		  | Lo | 
			  
				|  Posted: Tue Jul 11, 2006 2:04 am    Post subject: Trigger Recommendation |   |  | 
		
		  | Novice
 
 
 Joined: 14 Feb 2005Posts: 21
 
 
 | 
			  
				| All, Could anyone post a link or document that specifically states the trigger type recommendation from IBM. I have read that triggertype of FIRST is preferable to EVERY in this and other forums.
 
 I mostly understand the difference but would like an official statement of why FIRST is the recommended option from IBM.
 
 thanks.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Mr Butcher | 
			  
				|  Posted: Tue Jul 11, 2006 2:55 am    Post subject: |   |  | 
		
		  |  Padawan
 
 
 Joined: 23 May 2005Posts: 1716
 
 
 | 
			  
				| its not that easy to recommend. it also depends on the application design. 
 (e.g. if you want to have parallel processing)
 
 the "cheapest" and maybe most common used trigger option is first, because only one trigger is created when  the first message arrives. but - as i said above - it really depends on your application.
 _________________
 Regards, Butcher
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | wschutz | 
			  
				|  Posted: Tue Jul 11, 2006 5:44 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 02 Jun 2005Posts: 3316
 Location: IBM (retired)
 
 | 
			  
				| I think most people don't like "every" for two reasons: 
 (1) there is the additional overhead of starting the application, connecting to a qmgr, opening a queue (and then close / disc) for every message.
 
 (2) the supplied trigger monitors have no capability of throttling the number of processses started.  So, if suddenly 10K messages are dropped on a queue with trigtype=every, the TM will attempt to start 10K processes, which, if done in parallel (ie, in the background) will probably swamp the system.
 
 But, in certain cases, "every" might be justified.
 _________________
 -wayne
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Tue Jul 11, 2006 2:16 pm    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| Also, I believe there are still cases with trigtyp(every) where trigger messages will get suppressed.  So that you might get one trigger of your app instead of two. _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | wschutz | 
			  
				|  Posted: Tue Jul 11, 2006 3:35 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 02 Jun 2005Posts: 3316
 Location: IBM (retired)
 
 | 
			  
				| 
  Yes, for example upon qmgr restart..... 
	| jefflowrey wrote: |  
	| Also, I believe there are still cases with trigtyp(every) where trigger messages will get suppressed.  So that you might get one trigger of your app instead of two. |  _________________
 -wayne
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Nigelg | 
			  
				|  Posted: Tue Jul 11, 2006 11:21 pm    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 02 Aug 2004Posts: 1046
 
 
 | 
			  
				| IBM does not make any such recommendation. You have to read the docs and decide for yourself which settings are best for your architecture. _________________
 MQSeries.net helps those who help themselves..
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |