Periodic tasks inside WCF hosted in IIS

We would like to have some recurring activities performed by our WCF service hosted on IIS. What is the best way to do this? Creating a timer does not look like a good solution. Creating a Windows service that behaves like a kind of heart rate seems like a problematic solution, but it still smells bad. Which approach would be a good solution to this problem?

+5
source share
3 answers

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.

+2
source

, PHP-, . ( , , ), , , cron .

( SQL, Windows ..), . , , , .

0

, , , () , On GetCommonList (), /appsetting lastrun, 5 .. , ( ), - , - . , .. - .. . 2c.

0

All Articles