c# - What's are the benefits of using Web.config scheduled tasks over for example a Windows scheduled task -


we thinking of ways our scheduled tasks centralized as possible dragging lot of tasks website specific web.config files 1 windows schedules task. can imagine has negative consequences, want list them can make myself explanation of work best. have different types of task have done periodically example:

  • keepalive <- calls page website won't recompiling every 20 minutes (iis setting)
  • imports in different websites run <- imports of example objects have placed in sitecore database.

sitecore has it's own scheduler , makes imports easy run using scheduler. on other side, sitecore has it's own "keepalive" setting in web.config makes sure website runs faster.

what pro's , con's on issue , advice? keep scheduled tasks centralized? split normal imports keepalive tasks , put 1 of them in centralized environment?

sitecore native scheduling executed within sitecore context, means can communicate sitecore way app has alive task execute. pretty why impossible run scheduled agent @ specific time, on scheduled intervals, there no guarantee application healthy @ given moment.

windows tasks executed outside of context , can scheduled @ specific time, approach lacks needed sitecore context may complicate design bit, can create sitecore web service handle that.

among real world examples i've seen windows scheduler approach has been implemented scenario "publishing @ specific time": http://sitecoreblog.alexshyba.com/2007/02/publish-at-specific-time.html i've seen large data pushes implemented, 1 talking about. can pretty have import code run outside of sitecore context in console app. having access sitecore.configuration.factory, can instantiate databases, items , create items. that's need. plus more effective running such code within http context.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -