From the course: Learning Azure Durable Functions
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
The client function - Azure Tutorial
From the course: Learning Azure Durable Functions
The client function
- Now that we have a high level overview of the different durable function types, we can dive a bit deeper into each one. Let's start with the Client function. In the last video, we learned that the Client function is the Kickstarter, or entry point of a durable function. This is because orchestrations are created within orchestrator functions, and orchestrator functions can only be triggered by a client function. Client functions will typically bind to two things, a trigger, that will be used to invoke the client function itself, and more importantly, the Durable Client Attribute, a unique binding that gives you access to all Orchestration Client APIs, supported by durable functions. In this example, our client function is bound to a queue trigger, which will get invoked when a new message is placed into our specified queue. Once called, our client function instantiates a new orchestration by calling a start new…