This year I had to perform one task to cache some data from the database, she had to check the changing code every n minutes, I found this very nice article;
Simulate a Windows service using ASP.NET to run scheduled tasks
I did it this way and it worked, but as I said, it was only one task, but if you see the example above, you will see that it performs several tasks.
As you can see, in the cache you can perform the task at any time and at intervals, the night task can be performed at midnight, the rest every n minutes or hours.
Hope this helps.
Nelson miranda
source share