Note that there are some explanatory texts on larger screens.

plurals
  1. POlong running http process - how to put in separate process?
    primarykey
    data
    text
    <p>I know that similar questions have been asked all over the place, but I'm having trouble finding one that relates directly to what I'm after.</p> <p>I have a website where a user uploads a data file, then that file is transformed and imported into SQL. The file could be up to 50mb in size, and some times this process can take 30 minutes or sometimes even longer.</p> <p>I realise I need to palm off the actual work to another process, and poll that process on the web page. I'm wondering what the best approach would be though? Being a web developer by trade, I'm finding all this new Windows Service stuff a bit confusing, and I just wanted somewhere to start. </p> <p>So:</p> <ul> <li>Can I do / should I being doing this with a windows service? if so, how?</li> <li>Should I use WCF? If this runs under IIS, will I have problems with aspnet_wp.exe recycling and timing out my process?</li> </ul> <p><strong>clarifications</strong></p> <p>The data is imported into sql, there's no file distribution taking place.</p> <p>If there is a failure, it absolutely MUST be reported to the user. The web page will poll every, lets say, 5 seconds, from the time the async task begins, to get the 'status' of the import. Once it's finished another response will tell the page to stop polling for status updates.</p> <p><strong>queries on final decision</strong></p> <p>ok, so as I thought, it seems that a windows service is the best idea. So as to HOW to get it to work, it seems the 'put the file there and wait for the service to pick it up' idea is the generally accepted way, is there a way I can start a process run by the service, without it having to constantly be checking a database table / folder? As I said earlier, I don't have any experience with Windows Services - I wondered if I put a public method in the service, can I call it somehow?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload