Excalibur.LeaderElection.Postgres 3.0.0-alpha.45

This is a prerelease version of Excalibur.LeaderElection.Postgres.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Excalibur.LeaderElection.Postgres --version 3.0.0-alpha.45
                    
NuGet\Install-Package Excalibur.LeaderElection.Postgres -Version 3.0.0-alpha.45
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Excalibur.LeaderElection.Postgres" Version="3.0.0-alpha.45" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Excalibur.LeaderElection.Postgres" Version="3.0.0-alpha.45" />
                    
Directory.Packages.props
<PackageReference Include="Excalibur.LeaderElection.Postgres" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Excalibur.LeaderElection.Postgres --version 3.0.0-alpha.45
                    
#r "nuget: Excalibur.LeaderElection.Postgres, 3.0.0-alpha.45"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Excalibur.LeaderElection.Postgres@3.0.0-alpha.45
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Excalibur.LeaderElection.Postgres&version=3.0.0-alpha.45&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Excalibur.LeaderElection.Postgres&version=3.0.0-alpha.45&prerelease
                    
Install as a Cake Tool

Excalibur.LeaderElection.Postgres

PostgreSQL implementation of leader election for the Excalibur framework. Uses advisory locks (pg_try_advisory_lock) for distributed coordination with automatic failover and session-based locking.

Features

  • Advisory lock-based leader election -- lightweight, session-scoped locks that auto-release on connection loss
  • Health-based leader election -- extends standard LE with health-aware candidate tracking and voluntary step-down
  • Factory pattern -- create multiple independent leader elections with different lock keys
  • Telemetry integration -- OpenTelemetry metrics and traces via TelemetryLeaderElection decorator
  • Health checks -- ASP.NET Core health check integration

Quick Start

services.AddPostgresLeaderElection(options =>
{
    options.ConnectionString = "Host=localhost;Database=myapp;";
    options.LockKey = 12345;
});

Or using the builder pattern:

services.AddExcaliburLeaderElection(builder =>
{
    builder.UsePostgres(options =>
    {
        options.ConnectionString = connectionString;
    });
});
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Excalibur.LeaderElection.Postgres:

Package Downloads
Excalibur.Postgres

Complete PostgreSQL metapackage for Excalibur: event sourcing, outbox, inbox, sagas, leader election, audit logging, compliance, and data access in a single package reference.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0-alpha.156 34 4/17/2026
3.0.0-alpha.155 32 4/17/2026
3.0.0-alpha.143 45 4/14/2026
3.0.0-alpha.138 44 4/13/2026
3.0.0-alpha.131 43 4/10/2026
3.0.0-alpha.129 46 4/10/2026
3.0.0-alpha.125 43 4/10/2026
3.0.0-alpha.120 46 4/8/2026
3.0.0-alpha.118 39 4/8/2026
3.0.0-alpha.85 46 4/3/2026
3.0.0-alpha.84 47 3/31/2026
3.0.0-alpha.83 45 3/31/2026
3.0.0-alpha.82 45 3/31/2026
3.0.0-alpha.80 57 3/30/2026
3.0.0-alpha.79 48 3/29/2026
3.0.0-alpha.76 43 3/29/2026
3.0.0-alpha.75 46 3/27/2026
3.0.0-alpha.74 45 3/27/2026
3.0.0-alpha.70 39 3/26/2026
3.0.0-alpha.45 43 3/17/2026
Loading failed