In a set of instances that run identical code, elect a temporary leader to execute short-lived management functions.

For High Availability and Scale, applications and services may run on several instances of containers, VMs or service hosts. Yet, some functions are best executed by a single instance for a given time period.

Call the Elector.EnsureIsLeaderAsync method to acertain if a particular instance has been successfully designated as 'Leader' for a given time period.
This implementation uses the Lease mechanism provided by Azure Storage Blob Service.
See a description of the Leader Election pattern

Install-Package TECHIS.Cloud.LeaderElection -Version
dotnet add package TECHIS.Cloud.LeaderElection --version
<PackageReference Include="TECHIS.Cloud.LeaderElection" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TECHIS.Cloud.LeaderElection --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Updated dependencies. Added added support for netstandard2.0

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 576 1/8/2019 448 5/9/2017 382 5/9/2017 484 5/8/2017 428 5/4/2017
0.1.2 467 4/20/2017
0.1.1 443 4/19/2017
0.1.0 443 4/17/2017