TicketFlow.Routing.Stores.Postgres
0.1.0-alpha.4.1
dotnet add package TicketFlow.Routing.Stores.Postgres --version 0.1.0-alpha.4.1
NuGet\Install-Package TicketFlow.Routing.Stores.Postgres -Version 0.1.0-alpha.4.1
<PackageReference Include="TicketFlow.Routing.Stores.Postgres" Version="0.1.0-alpha.4.1" />
<PackageVersion Include="TicketFlow.Routing.Stores.Postgres" Version="0.1.0-alpha.4.1" />
<PackageReference Include="TicketFlow.Routing.Stores.Postgres" />
paket add TicketFlow.Routing.Stores.Postgres --version 0.1.0-alpha.4.1
#r "nuget: TicketFlow.Routing.Stores.Postgres, 0.1.0-alpha.4.1"
#:package TicketFlow.Routing.Stores.Postgres@0.1.0-alpha.4.1
#addin nuget:?package=TicketFlow.Routing.Stores.Postgres&version=0.1.0-alpha.4.1&prerelease
#tool nuget:?package=TicketFlow.Routing.Stores.Postgres&version=0.1.0-alpha.4.1&prerelease
TicketFlow.Routing.Stores.Postgres
Optional durable PostgreSQL storage for TicketFlow routing.
PostgresRoutingStoreimplementsIRoutingPolicyStore,IAgentAvailabilityStore,IRoutingAssignmentStore,IRoutingQueueStoreandIConversationPresenceStoreover an application-ownedNpgsqlDataSource.- Reservations run in one transaction: the round-robin cursor row is locked (
FOR UPDATE), then one load anchor row per candidate agent and channel kind in key order (deadlock-free), loads are counted from the assignment rows, the reference selection picks the agent and the reservation is upserted only when no live reservation or newer assignment exists. Capacity therefore holds across clients. - Queue lists translate the Access filter with
PostgresAccessFilterTranslatorin the same keyset statement (untranslatable filters deny all). Queue and reassignment claims useFOR UPDATE SKIP LOCKEDwith fences from one sequence; presence expiry sweeps too. - Keys use fixed-size
tf_key_v1hashes; rows carryformat_version; policies and agent settings use the versionedRoutingPolicyCodec/AgentSettingsCodecJSON.
services.AddTicketFlow()
.AddRouting()
.AddPostgresRoutingStores(dataSource);
await new PostgresRoutingStore(dataSource).InitializeAsync(); // explicit schema creation
InitializeAsync applies the append-only, checksummed PostgresRoutingMigrations.Catalog with the shared migration runner. Lease,
presence and expiry times come from the database clock (clock_timestamp()) by default; pass a TimeProvider (or
useApplicationClock: true) only for deterministic tests.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Npgsql (>= 10.0.3)
- TicketFlow.Access.Stores.Postgres (>= 0.1.0-alpha.4.1)
- TicketFlow.Routing.Abstractions (>= 0.1.0-alpha.4.1)
- TicketFlow.Stores.Migrations.Postgres (>= 0.1.0-alpha.4.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TicketFlow.Routing.Stores.Postgres:
| Package | Downloads |
|---|---|
|
TicketFlow
Catch-all meta-package for the TicketFlow stack: core primitives, support domains, in-memory and PostgreSQL stores, ASP.NET Core hosting, SignalR realtime, background workers, Blazor management UI, and MCP server toolsets. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.4.1 | 40 | 11/23/2026 |
| 0.1.0-alpha.3.1 | 38 | 11/23/2026 |
| 0.1.0-alpha.2.1 | 46 | 11/22/2026 |