EnvelopeFlow.Routing.Stores.Postgres
0.1.0-alpha.2.1
See the version list below for details.
dotnet add package EnvelopeFlow.Routing.Stores.Postgres --version 0.1.0-alpha.2.1
NuGet\Install-Package EnvelopeFlow.Routing.Stores.Postgres -Version 0.1.0-alpha.2.1
<PackageReference Include="EnvelopeFlow.Routing.Stores.Postgres" Version="0.1.0-alpha.2.1" />
<PackageVersion Include="EnvelopeFlow.Routing.Stores.Postgres" Version="0.1.0-alpha.2.1" />
<PackageReference Include="EnvelopeFlow.Routing.Stores.Postgres" />
paket add EnvelopeFlow.Routing.Stores.Postgres --version 0.1.0-alpha.2.1
#r "nuget: EnvelopeFlow.Routing.Stores.Postgres, 0.1.0-alpha.2.1"
#:package EnvelopeFlow.Routing.Stores.Postgres@0.1.0-alpha.2.1
#addin nuget:?package=EnvelopeFlow.Routing.Stores.Postgres&version=0.1.0-alpha.2.1&prerelease
#tool nuget:?package=EnvelopeFlow.Routing.Stores.Postgres&version=0.1.0-alpha.2.1&prerelease
Optional PostgreSQL routing and audited fallback
Create PostgresRoutedDeliveryStore with an application-owned NpgsqlDataSource and expose it as the application's IRoutedDeliveryStore/IDeliveryStore. It privately uses the delivery store; direct mutations through a separate base delivery adapter can bypass routing budgets and lineage. Constructors perform no network or schema work. Explicitly call InitializeAsync during application deployment: it bootstraps the underlying operational store and applies the routing-owned catalog through PostgresMigrationRunner. Operators can independently inspect/plan/apply PostgresRoutingMigrations.Catalog. Routing version one is immutable checksummed DDL; repeat application validates the journal and has no pending routing migration. Existing unjournaled routing objects are rejected rather than silently adopted, and historical feature catalogs are unchanged.
The adapter adds ef_route_intents, ef_route_steps and ef_route_audits. Admission uses a recipient/identity/intent-scoped PostgreSQL advisory lock, bounded SHA-256 index keys plus exact scope/owner verification, and one transaction for the selected operational target and immutable selection. The delivery store owns transaction operations for admission, locked payload reads, begin/cancel/replay transitions, history proof and outbox writes; routing composes them with its own selection, budget and lineage checks. These internal participants never open or commit a nested transaction. Fallback locks the intent and source, verifies a live database-time fence/lease and exact source revision, conservatively reads bounded delivery evidence, and commits the successor, lineage and causal audit together. Independent workers use SKIP LOCKED claims. Begin-submission and replay serialize through the routed intent; retries consume the same total attempt/cost budget and stale fallback claims cannot survive replay. Maximum age applies before every send, including after a deferral/retry, using a materialized database clock inside the final begin transition. The normal dispatcher's budget preflight spends no reservation; its routed cancellation atomically preserves the fixed BoundsExhausted causal audit. The final store gate repeats these checks independently.
Original expiry remains unchanged. Eligibility timestamps round upward to PostgreSQL microseconds. Schedules that cannot represent a due time strictly before expiry are rejected before admission. Core targets/events use PostgresDeliveryPayloadWriter; PostgresDeliveryPayloadOptions.WriteVersionedPayloads remains explicit and legacy payloads remain readable. The adapter delegates safe core operational-payload inspection/quarantine. Its own bounded routing metadata is version-one JSON and fails closed when unreadable; the routing catalog establishes its initial schema/format and does not automatically repair unreadable metadata. Future changes require additive immutable migrations and compatible readers alongside core upgrade operations.
Routing intents, destination data and rendered targets are private operational data. Hash indexes do not encrypt them. Applications own access control, encryption, backup and retention for routing tables and must retain source evidence/lineage while recovery remains possible; erasing evidence conservatively makes automatic fallback ineligible. RouteAudit includes IDs, revision, selected index/hop and fixed reasons without addresses, subscriptions, credentials or bodies. Audit hooks are at least once; consumers deduplicate by audit ID and acknowledge only their current scoped fence/lease.
The PostgreSQL-enabled routing tests cover competing clients, one-connection pools, canonical payloads, lease/revision refusal, committed-fallback process recovery and injected step/audit/outbox failures. Faults roll back delivery work, events and routing lineage together. This is local contract/recovery evidence, not external provider/device certification. See routing integration and the local recovery sample.
| 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
- EnvelopeFlow.Routing (>= 0.1.0-alpha.2.1)
- EnvelopeFlow.Stores.Postgres (>= 0.1.0-alpha.2.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Npgsql (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.3.1 | 47 | 11/22/2026 |
| 0.1.0-alpha.2.1 | 61 | 11/9/2026 |