I have a long running CPU bound task that I want to initialize from a link in my MVC application. When I click the link, I want the server to create a GUID to identify the job, return that GUID to the client, and perform the job after returning.
I set this up using ThreadPool.QueueWorkItem
, but I've read this can be problematic in MVC. Is there a better option for this case? Is there a different approach I should be using?