![]() |
VOOZH | about |
dotnet add package Akka.Coordination.Azure --version 1.5.68
NuGet\Install-Package Akka.Coordination.Azure -Version 1.5.68
<PackageReference Include="Akka.Coordination.Azure" Version="1.5.68" />
<PackageVersion Include="Akka.Coordination.Azure" Version="1.5.68" />Directory.Packages.props
<PackageReference Include="Akka.Coordination.Azure" />Project file
paket add Akka.Coordination.Azure --version 1.5.68
#r "nuget: Akka.Coordination.Azure, 1.5.68"
#:package Akka.Coordination.Azure@1.5.68
#addin nuget:?package=Akka.Coordination.Azure&version=1.5.68Install as a Cake Addin
#tool nuget:?package=Akka.Coordination.Azure&version=1.5.68Install as a Cake Tool
This module is an implementation of an Akka Coordination Lease backed by Azure Blob Storage in Azure. Resources in Azure can offer concurrency control and consistency that have been used to build a distributed lease/lock.
A lease can be used for:
In all cases the use of the lease increases the consistency of the feature. However, as the Azure Blob Storage server can also be subject to failure and network issues any use of this lease can reduce availability.
ActorSystem names because they all need a separate lease.To enable Azure lease inside SBR, you need to pass a LeaseMajorityOption instance into the second parameter of the WithClustering() extension method and specify that you're using the Azure lease implementation.
using var host = new HostBuilder()
.ConfigureServices((context, services) =>
{
services.AddAkka("azureLeaseDemo", (builder, provider) =>
{
builder
.WithRemoting("<akka-node-host-name-or-ip>", 4053)
.WithClustering(sbrOption: new LeaseMajorityOption
{
LeaseImplementation = AzureLeaseOption.Instance,
LeaseName = "myActorSystem-akka-sbr"
})
.WithAzureLease("<your-Azure-Blob-Storage-connection-string>");
});
}).Build();
await host.RunAsync();
To enable the lease for use within SBR:
akka.cluster {
downing-provider-class = "Akka.Cluster.SBR.SplitBrainResolverProvider, Akka.Cluster"
split-brain-resolver {
active-strategy = lease-majority
lease-majority {
lease-implementation = "akka.coordination.lease.azure"
}
}
}
akka.coordination.lease.azure {
lease-class = "Akka.Coordination.Azure.AzureLease, Akka.Coordination.Azure"
connection-string = ""
# Container to create the lock in.
container-name = "akka-coordination-lease"
# How often to write time into CRD so that if the holder crashes
# another node can take the lease after a given timeout. If left blank then the default is
# max(5s, heartbeat-timeout / 10) which will be 12s with the default heartbeat-timeout
heartbeat-interval = ""
# How long a lease must not be updated before another node can assume the holder has crashed.
# If the lease holder hasn't crashed its next heart beat will fail due to the version
# having been updated
heartbeat-timeout = 120s
# The individual timeout for each HTTP request. Defaults to 2/5 of the lease-operation-timeout
# Can't be greater than then lease-operation-timeout
api-service-request-timeout = ""
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.68 | 376 | 5/31/2026 |
| 1.5.67 | 639 | 4/28/2026 |
| 1.5.65 | 440 | 4/11/2026 |
| 1.5.63 | 227 | 3/31/2026 |
| 1.5.62 | 408 | 3/9/2026 |
| 1.5.61 | 815 | 2/27/2026 |
| 1.5.59 | 621 | 1/27/2026 |
| 1.5.57 | 672 | 12/16/2025 |
| 1.5.55 | 1,142 | 10/27/2025 |
| 1.5.52 | 333 | 10/10/2025 |
| 1.5.50 | 1,033 | 9/23/2025 |
| 1.5.48 | 493 | 8/29/2025 |
| 1.5.45.1 | 1,422 | 7/10/2025 |
| 1.5.45 | 665 | 7/8/2025 |
| 1.5.42 | 399 | 6/3/2025 |
| 1.5.37 | 1,232 | 1/23/2025 |
| 1.5.35 | 1,173 | 1/15/2025 |
| 1.5.33 | 517 | 12/31/2024 |
| 1.5.31 | 1,081 | 11/11/2024 |
| 1.5.30 | 4,696 | 10/3/2024 |
* Update to [Akka.NET v1.5.68](https://github.com/akkadotnet/akka.net/releases/tag/1.5.68)
* Update to [Akka.Hosting v1.5.68](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.68)