I need to decide whether to use a Web or Windows service for an upcoming project, but don't understand the advantages/disadvantages of each. The service needs to do two basic things:
- accept incoming requests from an ASP.NET web application to kick off a long running process, and alert the user when it is complete.
- automatically kick off similar long running processes based on a specific schedule
One of the questions I have is can a web service start a thread (in this case the schedule thread) when it is started? Does web services even allow multi-threading? Since a web service runs under IIS, can it take advantage of web farms?
Any feedback would be greatly appreciated!