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
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

Version History

Version Downloads Last updated 108 1/8/2019 228 5/9/2017 179 5/9/2017 251 5/8/2017 218 5/4/2017
0.1.2 235 4/20/2017
0.1.1 218 4/19/2017
0.1.0 224 4/17/2017