Excalibur.LeaderElection.Postgres 3.0.0-alpha.80

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.80
                    
NuGet\Install-Package Excalibur.LeaderElection.Postgres -Version 3.0.0-alpha.80
                    
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.80" />
                    
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.80" />
                    
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.80
                    
#r "nuget: Excalibur.LeaderElection.Postgres, 3.0.0-alpha.80"
                    
#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.80
                    
#: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.80&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Excalibur.LeaderElection.Postgres&version=3.0.0-alpha.80&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.

Part Of

This package is included in the following metapackages:

Metapackage Tier What It Adds
Excalibur.Postgres Complete Everything for PostgreSQL: ES + Outbox + Inbox + Saga + LE + Audit + Compliance + Data

Tip: Install Excalibur.Postgres for a production-ready PostgreSQL stack with a single package reference.

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.82 0 3/31/2026
3.0.0-alpha.80 33 3/30/2026
3.0.0-alpha.79 32 3/29/2026
3.0.0-alpha.76 32 3/29/2026
3.0.0-alpha.75 37 3/27/2026
3.0.0-alpha.74 36 3/27/2026
3.0.0-alpha.70 30 3/26/2026
3.0.0-alpha.68 34 3/25/2026
3.0.0-alpha.66 30 3/25/2026
3.0.0-alpha.64 32 3/25/2026
3.0.0-alpha.62 30 3/24/2026
3.0.0-alpha.59 31 3/24/2026
3.0.0-alpha.51 43 3/19/2026
3.0.0-alpha.48 38 3/18/2026
3.0.0-alpha.45 37 3/17/2026
3.0.0-alpha.44 42 3/16/2026
3.0.0-alpha.43 46 3/16/2026
3.0.0-alpha.42 36 3/16/2026
3.0.0-alpha.41 44 3/16/2026
3.0.0-alpha.33 38 3/15/2026
Loading failed