How to delay process using Azure functions?

Viewed 4273

I need to delay the execution of the data insertion in the DB2. I need to wait for 10 min for the following DB deployment reason

Registration Process

  • Step 1: I made an entry to the table of DB1.
  • Step 2: Start the process to create DB2- Database creation DB2
  • Step 3: After 10 min need to make entry in created DB2.

How it can be achieved using the Azure functions?

3 Answers

I think now there are many solutions for that after Azure Function V2 and also Durable Functions extension:

1- You can use Durable Functions (link) so you can orchestrate the whole workflow and then put all the code you want to delay in separate function and then delay it using the normal Task.Delay

2- You can use Azure Logic Apps which you can configure it and schedule it to run based on time (link).

3- Also you can use Scheduled Service Bus Queue (link).

4- You can think out of the box by making the delay it self in the DB side using SQL job but its depend on your business and architecture.

Related