Repository navigation
Durable Functions v2.0.0-alpha Release
Pre-release
Pre-release
Overview
Durable Functions 2.0.0-alpha is a breaking change release that contains the first iteration of some notable new features. It is consider an alpha quality preview release, and is intended for collecting early feedback from users. This release is not suitable for any production workloads, and subsequent releases may contain additional breaking changes.
Official documentation on this release can be found here: https://docs.microsoft.com/azure/azure-functions/durable/durable-functions-preview
New features
- Support for actor-like programming models (#22): Actor support has been a long-time ask for Durable Functions. As part of a partnership with Microsoft Research, we are adding first-class support for these patterns in the 2.0 release. Rather than calling them "actors" however, we are calling them Durable Entities.
- Support for critical sections in orchestrator functions: Several users have expressed a need to have "locks" in their orchestrator functions to ensure that no two orchestration instances can interact with some external system at the same time. Also as part of this release, we are including a new
LockAsyncmethod in the orchestration context that allows taking locks on one or more durable entities. More information on this new functionality can be found here. - Alternate storage providers: Durable Functions historically has been tied to Azure Storage, which is convenient but also has certain performance and scalability limitations, and also ties users to Azure. This release adds initial support for alternate storage providers, starting with an experimental release of a redis provider. More information can be found here.
Breaking changes
- This release of Durable Functions only supports Azure Functions 2.0. Support for Functions 1.0 (and therefore the full .NET Framework) has been dropped. See this documentation for more details.
- The host.json schema for
durableTaskhas changed. This was done to support alternate storage providers. Please see this documentation for the latest. - The .NET types for durable bindings and triggers have changed from abstract classes to interfaces. See this documentation for more details.
Other notes
- Feature work and fixes that are specific to the Durable Functions 2.0 will be developed in the
v2branch until a later date. Durable Functions 1.x will continue to be developed in thedevandmasterbranches. - Durable Functions 1.x will continue to have full support, and will receive regular bug fixes and updates. There are no current plans to deprecate Durable Functions 1.x.
- Official documentation for Durable Functions 2.0 is currently a bit sparse as we still need to figure out a documentation strategy. Until 2.0 features make their way into the official docs, this preview docs page should be used for all reference purposes.
- JavaScript support for the Durable Functions 2.0 feature set is coming soon.
You can download the alpha build of the Durable Functions v2 extension from nuget here: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.DurableTask/2.0.0-alpha