Tyto.Backplane.Postgres
0.1.0-alpha.12
This is a prerelease version of Tyto.Backplane.Postgres.
dotnet add package Tyto.Backplane.Postgres --version 0.1.0-alpha.12
NuGet\Install-Package Tyto.Backplane.Postgres -Version 0.1.0-alpha.12
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="Tyto.Backplane.Postgres" Version="0.1.0-alpha.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tyto.Backplane.Postgres" Version="0.1.0-alpha.12" />
<PackageReference Include="Tyto.Backplane.Postgres" />
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 Tyto.Backplane.Postgres --version 0.1.0-alpha.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Tyto.Backplane.Postgres, 0.1.0-alpha.12"
#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 Tyto.Backplane.Postgres@0.1.0-alpha.12
#: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=Tyto.Backplane.Postgres&version=0.1.0-alpha.12&prerelease
#tool nuget:?package=Tyto.Backplane.Postgres&version=0.1.0-alpha.12&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Tyto.Backplane.Postgres
A Tyto.Backplane provider over PostgreSQL LISTEN/NOTIFY, for deployments that already run PostgreSQL and do not
want to add Redis only for best-effort broadcast.
builder.AddTyto(tyto => tyto.AddBackplane(backplane => backplane.UsePostgres(connectionString)));
Semantics (read before relying on it)
| Delivery | Broadcast: every session listening on the channel when the notification is committed receives it. |
| Durability | None. A notification is not stored for a session that is not listening: a restart, a dropped connection or a node that starts later never sees it. |
| Ordering | One publisher's messages arrive in commit order. Nothing is promised across publishers. Handlers run one at a time in arrival order. |
| Payload | PostgreSQL rejects 8000 bytes or more. The provider wraps your message in a small JSON envelope and throws PostgresBackplanePayloadTooLargeException above 7900 bytes. Send identifiers or invalidations and let receivers read the data. |
| Channels | Literal names only (no wildcard patterns, NotSupportedException). Names over 63 bytes are mapped to a stable hash. |
| Publish errors | Thrown to the caller (unlike the Redis provider's fire-and-forget); callers on a hot path catch and count. |
| Connection | One dedicated session listens for all channels. On failure ConnectionFailed is raised once, the session reconnects with backoff (500 ms doubling to 15 s), re-issues every LISTEN, then raises ConnectionRestored. Notifications in between are lost. |
| Pooling | Use a direct connection or a session-pooling proxy; PgBouncer in transaction mode cannot LISTEN. |
| Cost | One pooled connection held for the life of the process, plus one short connection use per publish. |
Subscribe to every channel at start-up: adding a channel later reconnects the listening session (a short gap).
A notification is delivered when its transaction commits; pg_notify here runs in its own implicit transaction.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Npgsql (>= 9.0.3)
- Tyto.Backplane (>= 0.1.0-alpha.12)
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.12 | 0 | 11/27/2026 |