It depends on what you are trying to do. If this is a database-related cleaning action, for example, removing orphaned shopping carts, you can schedule it to work in your database of choice, for example, SQL Server is a very reliable mechanism. A Windows service would be a great candidate if it is an OS-based action, such as periodically cleaning / deleting files, etc. Since the IIS / WCF service is usually more suitable for processing external responses, I don’t think it would be wrong to use the OS or DB service levels for your task.
source
share