I'm trying to figure out the best option to handle this type of scenario.
I have a C# web application that inserts data into a SQL table. Once a new record has been added to the SQL table, a unique id is assigned, and the record is assigned a status value of "Available". I will need to scan the table every 30 minutes to identify any records that have a status of "Available". If a record has an "Available" status, an API will need to get called to retrieve data and insert into another table.
Would scheduling a SQL job to run a stored procedure every 30 minutes be the best option? If any "Available" statuses are found, call the API from the stored procedure for each record?
Should I use Windows Task Scheduler or something else in .NET to call the API?
I have a C# web application that inserts data into a SQL table. Once a new record has been added to the SQL table, a unique id is assigned, and the record is assigned a status value of "Available". I will need to scan the table every 30 minutes to identify any records that have a status of "Available". If a record has an "Available" status, an API will need to get called to retrieve data and insert into another table.
Would scheduling a SQL job to run a stored procedure every 30 minutes be the best option? If any "Available" statuses are found, call the API from the stored procedure for each record?
Should I use Windows Task Scheduler or something else in .NET to call the API?