azure webjobs - ASP.NET long running task ideas -


very have send data , third party accounting systems asp.net sites using sql server. data imports take awhile , i'm trying find best method handle long running tasks ability update user if want see how it's doing. questions of pros , cons methods below , recommend , why?

  • old style asp response.write: i use quite bit , @ moment go method because it's fast. haven't had many problems it. thought app pool recycling issue don't think recycle while in middle of request.

  • using iframe proposed here http://encosia.com/easy-incremental-status-updates-for-long-requests/: similar above method except asynchronous.i'm not sure if allow asp.net restart

  • a separate windows app calls web service site: i have used method takes little longer set , stop running when app pool recycles. not use method

  • windows workflow: have not used seems like(especially small data updates) overkill

  • windows service: same above. seems difficult

  • ajax, separate thread , timer poll cached results: i've used quite bit stop if app pool recycles it's on separate thread asp.net isn't aware of.

if job takes more few minutes, recommend job added database status of job updated process doing work. implement small command line application or windows service (they aren't bad make, see writing useful windows service in .net in 5 minutes) monitors database new jobs. when finds 1 picks , updates status goes. end user can redirected page lists each job , progress. when job complete database row updated , application waits new job come along.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -