在 Win 2003/2008 服务器上运行的任务调度程序:Windows 服务还是替代方案?
我正在开发一个基于 Web 的应用程序(asp.net MVC)。
用户使用网络界面配置提醒,以便将来在需要做某事时通知其他用户。
我现在正在开发调度程序。
过去,我曾使用 Windows 服务应用程序来实现此目的,但我意识到现在有太多服务,基本上,它们不会做太多事情,而是每 x 分钟在后台运行一次,只是为了检查某些内容并执行一些行动。
这没有什么问题,但是每个服务都使用服务器上的大量资源,不容易配置(我必须在配置文件中指定大多数参数)并且(它发生的时间不同)如果有任何类型的问题数据库并且它停止了我无法检查它是否正在执行其工作。
还有其他选择/建议吗?我看到有人尝试实现 Windows Workflow Foundation,但主机仍然是 Windows Service。
最适合您的方法是什么?
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 to 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有两种明显的替代方案:
There are two obvious alternatives:
我会推荐(VisualCron)。您可以使用它来调用网络或休息服务。
I would recommend (VisualCron). You can use it to call web or rest services.