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 ConfigureAwait(false) to awaits

Version History

Version Downloads Last updated 158 5/9/2017 115 5/9/2017 161 5/8/2017 141 5/4/2017
0.1.2 147 4/20/2017
0.1.1 147 4/19/2017
0.1.0 150 4/17/2017