Home > Blockchain >  azure function check if message received after X minutes
azure function check if message received after X minutes

Time:04-22

I am completely new to Azure and I have a function which is triggered by a service bus queue, the message is a JSON string. Now I want to check if after 3 minutes of receiving the message another arrived.

how do I achieve this?

CodePudding user response:

In short no! You would have to poll the servicebus message queue yourself to control that behaviour.

https://stackoverflow.com/a/48899686/12040634

What is the scenario that would require you to check for a subsequent message after 3 minutes?

CodePudding user response:

You may want to use the concept of "Timers in Durable Functions".

https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-timers?tabs=csharp

You are using "azure functions" or do you want to have a function in azure e.g. in a webservice? I am not so sure ;)

  • Related