Activity Chaining in Durable Functions

Learn the fundamentals of using chained activities by the orchestrator.

Durable functions can be used to execute processes where different steps depend on each other. For example, we might need an output from one activity to be used as an input in the next activity. The activities will run in a predefined sequence. This process is known as chaining.

We have an example of chained activities in the interactive playground below. We have a setup where the orchestrator accepts the name of a user as its input parameter. Then, the orchestrator calls an activity that retrieves userId based on this name. Then, it passes userId into another activity function that returns the bank balance for the user. After this, the bank balance is passed to another function that accesses the user’s eligibility for an account upgrade.

Get hands-on with 1400+ tech skills courses.