Excalibur.LeaderElection.Postgres
3.0.0-alpha.159
dotnet add package Excalibur.LeaderElection.Postgres --version 3.0.0-alpha.159
NuGet\Install-Package Excalibur.LeaderElection.Postgres -Version 3.0.0-alpha.159
<PackageReference Include="Excalibur.LeaderElection.Postgres" Version="3.0.0-alpha.159" />
<PackageVersion Include="Excalibur.LeaderElection.Postgres" Version="3.0.0-alpha.159" />
<PackageReference Include="Excalibur.LeaderElection.Postgres" />
paket add Excalibur.LeaderElection.Postgres --version 3.0.0-alpha.159
#r "nuget: Excalibur.LeaderElection.Postgres, 3.0.0-alpha.159"
#:package Excalibur.LeaderElection.Postgres@3.0.0-alpha.159
#addin nuget:?package=Excalibur.LeaderElection.Postgres&version=3.0.0-alpha.159&prerelease
#tool nuget:?package=Excalibur.LeaderElection.Postgres&version=3.0.0-alpha.159&prerelease
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.Postgresfor 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
TelemetryLeaderElectiondecorator - 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.AddExcalibur(x => x.AddLeaderElection(builder =>
{
builder.UsePostgres(options =>
{
options.ConnectionString = connectionString;
});
}));
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Ben.Demystifier (>= 0.4.1)
- BenchmarkDotNet (>= 0.15.8)
- CloudNative.CloudEvents (>= 2.8.0)
- CloudNative.CloudEvents.SystemTextJson (>= 2.8.0)
- Cronos (>= 0.12.0)
- Dapper (>= 2.1.72)
- Excalibur.Dispatch.LeaderElection.Abstractions (>= 3.0.0-alpha.159)
- Excalibur.LeaderElection (>= 3.0.0-alpha.159)
- FluentValidation (>= 12.1.1)
- FluentValidation.DependencyInjectionExtensions (>= 12.1.1)
- IdentityModel (>= 7.0.0)
- JsonNet.ContractResolvers (>= 2.0.0)
- Medo.Uuid7 (>= 3.2.0)
- MemoryPack (>= 1.21.4)
- Microsoft.ApplicationInsights (>= 3.1.0)
- Microsoft.AspNetCore.Authorization (>= 10.0.6)
- Microsoft.CodeAnalysis.Analyzers (>= 3.11.0)
- Microsoft.CodeAnalysis.Common (>= 4.14.0)
- Microsoft.CodeAnalysis.CSharp (>= 4.14.0)
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Caching.Memory (>= 10.0.6)
- Microsoft.Extensions.Configuration (>= 10.0.6)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.6)
- Microsoft.Extensions.Configuration.CommandLine (>= 10.0.6)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.6)
- Microsoft.Extensions.Configuration.Json (>= 10.0.6)
- Microsoft.Extensions.DependencyInjection (>= 10.0.6)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.6)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Hosting (>= 10.0.6)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Http (>= 10.0.6)
- Microsoft.Extensions.Logging (>= 10.0.6)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.6)
- Microsoft.Extensions.Logging.Console (>= 10.0.6)
- Microsoft.Extensions.ObjectPool (>= 10.0.6)
- Microsoft.Extensions.Options (>= 10.0.6)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.6)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.6)
- Microsoft.IdentityModel.Tokens (>= 8.17.0)
- Npgsql (>= 10.0.2)
- OpenTelemetry (>= 1.15.2)
- OpenTelemetry.Api (>= 1.15.2)
- OpenTelemetry.Extensions.Hosting (>= 1.15.2)
- Polly (>= 8.6.6)
- System.IdentityModel.Tokens.Jwt (>= 8.17.0)
- System.Threading.RateLimiting (>= 10.0.6)
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.159 | 0 | 4/21/2026 |
| 3.0.0-alpha.158 | 0 | 4/21/2026 |
| 3.0.0-alpha.157 | 26 | 4/20/2026 |
| 3.0.0-alpha.156 | 42 | 4/17/2026 |
| 3.0.0-alpha.155 | 36 | 4/17/2026 |
| 3.0.0-alpha.143 | 45 | 4/14/2026 |
| 3.0.0-alpha.138 | 45 | 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 | 44 | 3/29/2026 |
| 3.0.0-alpha.75 | 46 | 3/27/2026 |