I’m trying to build a basic application which will have 2 separate components which are:
1. Continually poll an external process and store the results within a DB
2. Grab the results from the DB and display it in a webpage
I’m looking to do this in .Net so I would normally say to do the first component in a Windows Service and the second in ASP.net with a relational dbms like sql server.
The problem with this is that i want to use webhosting to deploy this and they don’t tend to allow Windows Services (unless you pay a fortune). So is it feasible to do the polling component in a seperate asp.net page, or maybe create a spawning worker thread within a single asp.net page that will do the polling for me?
Any opinions/input appreciated.
Thanks 🙂
Consider this blogpost dealing with Easy Background Tasks in ASP.NET. Some suggestions, lessons learned, etc in the comments. I think I remember a podcast where the scale of the site has forced a move of this code to a Windows Service. You may/not have the same scaling needs.