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 activity function - Azure Tutorial
From the course: Learning Azure Durable Functions
The activity function
- So far, we've learned how to kickstart a durable function with a client function and have outlined what we're going to do with an orchestrator function. At this point, we still haven't done any actual work. This is where the third type of durable function, the activity function, comes into play. The basic unit of work in a durable function, an activity function is an action or task that is managed by the orchestrator function. Our earlier example had a single task, which was to say hello. A more complex version of this durable function might include tasks like cleaning the input, choosing a language, and then finally saying hello. Each of these tasks would be its own activity function. Activity functions can be executed sequentially, in parallel, or some combination of both. In our case, our orchestration can run either way, as every user should be greeted. In a more complex kind of orchestration, say the ordering…