In the ASP.Net application I am writing I need to be able to have it send various faxes out. My fax server allows me to send the fax via an HTTP POST and returns to me an ID for the submitted fax.
I need to be able to know if each fax ultimately sends OK or fails for some reason. The fax server allows me to query the status of a fax by using the ID it gave me.
My question is what’s the best way to handle this? Should a new thread be created somehow in global.asax? Or should I try and make this a windows service? Or create a recurring job in SQL server that run every now and then?
Everything is in house. Nothing is hosted, so I can pretty much do what I want. But I’m unsure what the best way to handle this scenario is.
Any suggestions on an approach?
The ASP.NET application is not a suitable place for a recurring action. IIS can shut down the web application when it’s not used, and also it can be recycled at any time.
You can make a windows service, or you can simply make a console application that is started from the windows scheduler. A job in the SQL Server would also work.