c# - ASP.Net life of threads and spawned tasks -
i'm new asp.net,
i writing webapi kick off heavy server side processing need assurance complete.
at present asp.net request kicks off new task (task.factory.startnew(...)) returns url user can poll find status.
however getting odd threadaborted exceptions in serverside processing tasks , reading this question thinking using task not best option.
is there better parallelism/async paradigm spawning long running server side processes need assurance of completion ?
iis can recycle application @ time web server not best thing use this. best bet run windows service on separate server , either self host webapi in or use msmq send message web server "app" server initiate processing.
Comments
Post a Comment