TicketFlow.Routing.Stores.Postgres 0.1.0-alpha.4.1

This is a prerelease version of TicketFlow.Routing.Stores.Postgres.
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
                    
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="TicketFlow.Routing.Stores.Postgres" Version="0.1.0-alpha.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TicketFlow.Routing.Stores.Postgres" Version="0.1.0-alpha.4.1" />
                    
Directory.Packages.props
<PackageReference Include="TicketFlow.Routing.Stores.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 TicketFlow.Routing.Stores.Postgres --version 0.1.0-alpha.4.1
                    
#r "nuget: TicketFlow.Routing.Stores.Postgres, 0.1.0-alpha.4.1"
                    
#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 TicketFlow.Routing.Stores.Postgres@0.1.0-alpha.4.1
                    
#: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=TicketFlow.Routing.Stores.Postgres&version=0.1.0-alpha.4.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TicketFlow.Routing.Stores.Postgres&version=0.1.0-alpha.4.1&prerelease
                    
Install as a Cake Tool

TicketFlow.Routing.Stores.Postgres

Optional durable PostgreSQL storage for TicketFlow routing.

  • PostgresRoutingStore implements IRoutingPolicyStore, IAgentAvailabilityStore, IRoutingAssignmentStore, IRoutingQueueStore and IConversationPresenceStore over an application-owned NpgsqlDataSource.
  • 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 PostgresAccessFilterTranslator in the same keyset statement (untranslatable filters deny all). Queue and reassignment claims use FOR UPDATE SKIP LOCKED with fences from one sequence; presence expiry sweeps too.
  • Keys use fixed-size tf_key_v1 hashes; rows carry format_version; policies and agent settings use the versioned RoutingPolicyCodec/AgentSettingsCodec JSON.
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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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 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