Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delay process using Azure functions?

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?

like image 411
Furqan Misarwala Avatar asked Mar 08 '23 07:03

Furqan Misarwala


1 Answers

One way would be to send a message to a Service Bus queue with ScheduledEnqueueTimeUtc property set to 10 minutes from now. (docs)

Then have an Azure Function which is triggered by that Service Bus queue. (docs)

like image 59
Mikhail Shilkov Avatar answered Mar 11 '23 07:03

Mikhail Shilkov