Scheduled Tasks for Web Applications

有或没有单独的网络/桌面应用程序,为Web应用程序创建计划任务有哪些不同的方法?


If we're talking Microsoft platform, then I'd always develop a separate Windows Service to handle such batch tasks.

You can always reference the same assemblies that are being used by your web application to avoid any nasty code duplication.


Jeff discussed this on the Stack Overflow blog - http://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/

Basically, Jeff proposed using the CacheItemRemovedCallback as a timer for calling certain tasks.

I personally believe that automated tasks should be handled as a service, a Windows scheduled task, or a job in SQL Server.

Under Linux, checkout cron.


我认为堆栈溢出本身使用ApplicationCache过期来间隔运行后台代码。

链接地址: http://www.djcxy.com/p/38914.html

上一篇: Web应用程序中的计划任务?

下一篇: 计划的Web应用程序任务