I have a scheduled task that I need to run by going to the page, my web host does not allow me to use the window scheduler.
One task performed by this task is to get some data from several other websites, due to how slow the web requests can be. I set a task to use threads.
Performing this task from the mvc action seems to cause the entire web server to become sloppy, making it impossible to load more pages.
Is it wrong to use streams from a web application? Is there any way to do this safely? What are the restrictions on threading? Do I just need to know more information?
EDIT: SUBQUESTIONS
If I use threads from threadpool (which is used by ASP.NET runtime ( thanks Anton ), can I limit the number of threads that it can use? What is ASP.NET? Threadpool size limit?
Would it be better to have a separate site that does this? Perhaps a virtual folder containing a separate ASP.NET application? Would this prevent me from restricting flow rights?
source
share