question

EmmettM-3733 avatar image
0 Votes"
EmmettM-3733 asked PramodValavala-MSFT answered

Is it possible to have multiple calls to the same durable function?

I have a durable function that lives in Azure, and my company has a web portal in Azure. Multiple users can be logged into our web portal and I am wondering if there is a way they can each trigger the durable function without it either tripping over each other by using the same task hubs or get stuck on pending while it waits for the previous one to finish. I am wondering if, and how I would be able to do it, can I make it so multiple users can request my durable function at the same time and the durable function would run multiple times at the same time without causing any problems?

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered

@EmmettM-3733 This is the default behavior. The opposite needs extra effort.

If you are using a HTTP Starter function, it would return a result which is unique for that request. In fact, another request from the same user could trigger a duplicate which you will need to check for if required.

The response contains special URLs that can be polled to keep track of the orchestration triggered.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.