开发者

Task-scheduler running on Win 2003/2008 server: windows service or alternative?

I am developing an application which is web-based (asp.net MVC).

The user configures reminders using the web interface so that other users can be notified when something has to be done, in the future.

I am in the process to develop the scheduler now.

In the past I've used windows-services applications for that purpose but I've realized that I've got too many services now that, basically, don't do much but run in background every x minutes just to check something and execute some actions.

There's nothing wrong with that but every service uses a good amount of resources on the server, is not easily configurable (I have to specify most of the parameters in the config file) and (it happened different times) if there's any kind of problems with the database and it stops I have no way to check t开发者_JS百科o see if it is doing its job.

Are there any other alternatives/suggestion? I've seen someone have tried to implement Windows Workflow Foundation but still the host is Windows Service.

What is the best approach for you?


There are two obvious alternatives:

  1. Use the standard Windows task scheduler to kick off command-line-driven jobs. Microsoft has really improved the scheduler in Vista and Windows 7.
  2. Use a custom-built scheduler like Quartz.NET.


I would recommend (VisualCron). You can use it to call web or rest services.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜