You have time consuming tasks that happen on time regular basis.
For example contacting web service or long db process.
They should run in background to free front website of locking into long task.
There is proper way of easily doing this inside legacy ASP.NET website.
There are even open source framework for this.
The challenge resides in fact that IIS & ASP.NET own app domain and destroy it when they determine that website lifespan is finished or app pool gets recycled.
Read more:
http://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx
https://github.com/NuGet/WebBackgrounder
http://fluentscheduler.codeplex.com/workitem/list/basic
No comments:
Post a Comment