Tuesday 11 October 2011

windows service vs windows scheduled tasks

In general, I prefer windows scheduled tasks as long as the running frequency is less frequent than once every 30 seconds. I.e. more than 30 seconds between two consequent tasks.

windows scheduled tasks
* Easy to debug
* Easy to setup
* Can be run in silent mode, i.e. no console window flashes every time when the program is run.

windows service
* Run in background by default
* Can start and stop the service in the windows services.exe
* Can be run very frequently

No comments:

Post a Comment