If this question has been asked before, my apologies, I've been  
googling around and haven't really seen what I'm looking for.

What I'm thinking about is this.  The app I'm working on has a pile  
of maintenance routines and other routine tasks that have to run  
pretty much on an ongoing basis.  For example, I have a scheduled  
task that runs every 90 seconds to see if there are any pending  
messages.  Others handle some other tasks.

Currently, on the first page view my app starts and creates several  
persistent application scoped CFCs.  In the OnApplicationStart method  
I call another cfc which initializes all the application level  
variables, etc.

What I'm considering doing is wrapping my various maintenance  
routines up into one function that will be called with cfthread on  
application startup, and will just run all the time at a low  
priority, looping through, then starting over again.  Consequently,  
there would never be a cfjoin statement, because this activity would  
be independent of whether anyone is actually looking at any pages.

Any thoughts on what I should consider if doing this?  Any gotchas? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288017
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to