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

There is a newer version of this package available.
See the version list below for details.
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 support for .NET Standard 1.6

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 421 1/8/2019 347 5/9/2017 293 5/9/2017 376 5/8/2017 325 5/4/2017
0.1.2 371 4/20/2017
0.1.1 345 4/19/2017
0.1.0 350 4/17/2017