Hey,
I've created a heavy page that is meant for the site operators. The page takes about 3 minutes to complete, and if we will implement it in production it will get timed out. I don't want to increase the timeout limit of the site or the page itself. I want to make it asynchronously. Note however that the page returns results, therefore cannot be "click and forget".
How should I do it? Do you know a pattern, a tool, or some example code?
I thought about running the action in a separate thread, having a client-side script that keeps checking if the thread is done, and if it is - take the results and parse them on the page - but I want to be sure I'm doing it right.