I need advice on the best approach for dynamically creating some form of a scheduled task at the web application level. The scheduled task will take information from the external API endpoint for storage in the database at regular intervals until a certain end time.
Normally, I would create a Windows service that will do the job for me. Unfortunately, the site administrator could create several tasks to request various criteria from an external API. Thus, several tasks can be performed.
I am working on implementing a workflow thread that runs on a timer. Would this be a better approach? Or would you use something like Hangfire or Quartz.net to be the best solution to keep the background process running?
I do not know if it is possible in a web application to ensure that a task can be performed continuously when it is required for a certain time.
source
share