-
Book Overview & Buying
-
Table Of Contents
Azure for Developers - Third Edition
By :
Orchestrations and activities already provide lots of necessary features needed to build reliable workflows using Durable Functions. However, the framework gives you many more features that are suited for a number of various tasks. In this section, we’ll focus on using them and applying viable use cases.
Even though orchestrations are single-threaded (which means you don’t need to worry about race conditions), there are cases where you need to be sure that only one orchestration can be active at a particular moment. This includes scenarios such as interactions with external systems or persisting data in non-transactional systems. You can also consider scenarios that would require the use of distributed transactions. For all those cases, Durable Functions introduce the concept of a critical section. It’s implemented with the following syntax:
[Function("Critical")]
public static async...