A new engine for Durable Functions. https://microsoft.github.io/durabletask-netherite
Перейти к файлу
Sebastian Burckhardt 113fc4addc
Remove obsolete uses of ConnectionStringResolver (#171)
* replace obsolete resolver type.

* remove unnecessary usings

* undo changes due to mysterious CI failures, instead just disable warnings
2022-07-25 13:55:46 -07:00
samples update samples to 1.0.2 release 2022-04-22 17:07:52 -07:00
src Remove obsolete uses of ConnectionStringResolver (#171) 2022-07-25 13:55:46 -07:00
test Remove obsolete uses of ConnectionStringResolver (#171) 2022-07-25 13:55:46 -07:00
.editorconfig initial commit. 2020-10-29 15:01:29 -07:00
.gitignore New Code Samples for Netherite (#72) 2021-09-20 11:48:15 -07:00
Contributing.md follow legal guidance 2020-11-16 13:55:52 -08:00
DurableTask.Netherite.sln Merge branch 'dev' 2021-11-17 09:56:56 -08:00
LICENSE.txt follow legal guidance 2020-11-16 13:55:52 -08:00
README.md remove Microsoft.Extensions.Logging.Abstractions dependency and create 1.0.3 patch (#156) 2022-05-09 23:10:37 -07:00
azure-pipelines-release.yml Add Release Pipeline (#150) 2022-04-22 15:37:43 -07:00
azure-pipelines.yml Add Release Pipeline (#150) 2022-04-22 15:37:43 -07:00
sign.snk initial commit. 2020-10-29 15:01:29 -07:00

README.md

Netherite

Netherite is a distributed workflow execution engine for Durable Functions (DF) and the Durable Task Framework (DTFx).

It is of potential interest to anyone developing applications on those platforms who has an appetite for performance, scalability, and reliability.

As Netherite is intended to be a drop-in backend replacement, it does not modify the application API. Existing DF and DTFx applications can switch to this backend with little effort.

Getting Started

To get started, you can either try out the sample, or take an existing DF app and switch it to the Netherite backend. You can also read our documentation.

The hello sample. For a quick start, take a look at hello sample. We included scripts that make it easy to build, run, and deploy this application. Also, this sample is a great starting point for creating your own projects.

Configure an existing DF app to use Netherite. If you have a .NET Durable Functions application already, and want to configure it to use Netherite as the backend, do the following:

  • Add the NuGet package Microsoft.Azure.DurableTask.Netherite.AzureFunctions to your functions project.
  • Create an EventHubs namespace. You can do this in the Azure portal, or using the Azure CLI.
  • Configure EventHubsConnection with the connection string for the Event Hubs namespace. You can do this using an environment variable, or with a function app configuration settings.
  • Optionally, update the host.json to tweak the settings for Netherite.

🎥 If you want to follow along migrating a Durable Function from Azure Storage to Netherite, we recommend the YouTube video Migrate your Durable Function to Netherite.

Why a new engine?

The default Azure Storage engine stores messages in Azure Storage queues and instance states in Azure Storage tables. It executes large numbers of small storage accesses. For example, executing a single orchestration with three activities may require a total of 4 dequeue operations, 3 enqueue operations, 4 table reads, and 4 table writes. Thus, the overall throughput quickly becomes limited by how many I/O operations Azure Storage allows per second.

To achieve better performance, Netherite represents queues and partition states differently, to improve batching:

  • Partitions communicate via ordered, persistent event streams, over EventHubs.
  • The state of a partition is stored using a combination of an immutable log and checkpoints, in Azure PageBlobs.

For some other considerations about how to choose the engine, see the documentation.

Status

The current version of Netherite is 1.0.3. Netherite supports almost all of the DT and DF APIs. However, there are still some limitations:

  • Supported hosted plans. Consumption plan is not supported yet, and auto-scaling only works on Elastic Premium plans with runtime-scaling enabled. This will be resolved by GA.
  • Query Performance. Currently, query performance is suboptimal and does not support paging. We plan to add a range index implementation to fix this soon after GA.

To learn more about the Netherite architecture, you can also check out our paper on arXiv.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Security

Microsoft takes the security of our software products and services seriously, which includes Microsoft, Azure, DotNet, AspNet, Xamarin, and our GitHub organizations.

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's Microsoft's definition of a security vulnerability, please report it to us at the Microsoft Security Response Center (MSRC) at https://msrc.microsoft.com/create-report. Do not report security vulnerabilities through GitHub issues.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.