Background process in asp.net

Thanks to Advance for reading and answer this question.

I got a button in asp 2.0 that will handle something BIG. It will take some time (more than 30,000 comparisons), and I want to know if the browser says that it has lost connection with the server, will the server complete the process?

+3
source share
2 answers

You will probably want to change your architecture so that the HTTP response does not depend on the completion of processing during the wait period. It sounds as if you are not going to tell the user anything based on the calculation results, in any case, based on a question. There are various methods that you can use, but most of them involve writing the message to the queue, and then with a separate process, for example, with the Windows service monitor, which executes the queue and performs long work separately.

+1
source

You should not run this button live on the site, but instead create the stream server side.

You can use AJAX to tell services to start the comparison and then listen to the response.

0
source

Source: https://habr.com/ru/post/1735477/


All Articles