Info
| Version: | 1.0.0 | 
| Author(s): | Arinze, TECH-IS | 
| Last Update: | Friday, July 15, 2022 | 
| .NET Fiddle: | Create the first Fiddle | 
| Project Url: | http://techinceptions.com/packages/Leader-Elector | 
| NuGet Url: | https://www.nuget.org/packages/TECHIS.Cloud.LeaderElection | 
Install
Install-Package TECHIS.Cloud.LeaderElection
                        dotnet add package TECHIS.Cloud.LeaderElection
                        paket add TECHIS.Cloud.LeaderElection
                        
                                TECHIS.Cloud.LeaderElection Download (Unzip the "nupkg" after downloading)
                            
                        Dependencies
                                         .NETStandard 1.6 
                                        
                    - NETStandard.Library(>= 1.6.1)
- TECHIS.Cloud.AzureStorage(>= 0.2.5.6)
- TECHIS.Cloud.AzureStorage(>= 0.2.5.6)
- NETStandard.Library(>= 1.6.1)
- TECHIS.Cloud.AzureStorage(>= 0.2.5.6)
Tags
 
                
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 https://docs.microsoft.com/en-us/azure/architecture/patterns/leader-election.