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

Emmett M 21 Reputation points
2021-07-01T16:19:35.25+00:00

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
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,389 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,591 Reputation points Microsoft Employee
    2021-07-02T10:11:17.697+00:00

    @Emmett M 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.

    0 comments No comments