Skip to content

v5.1.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@windischb windischb released this 05 Sep 06:50
· 58 commits to develop since this release
6523f12

Preview of the upcoming 5.1.0, published for integration testing. Not for production.

5.1.0 adds a second backplane. Nothing in it is breaking: the Redis package, the server and the clients keep their API and wire format, and a single-node application is unaffected.

  • Backplane guide — how to choose between Redis and Postgres, and what to know before running the Postgres one
  • Changelog — the full list

What is new

  • PostgreSQL backplane — Cocoar.SignalARRR.Server.Backplane.Postgres, AddSignalARRRPostgresBackplane. The same cluster behaviour as the Redis package over the PostgreSQL primary an application already has: LISTEN/NOTIFY for delivery, rows for the connection registry and node heartbeats, an unlogged table for envelopes above the 8 kB notification limit. The schema is created on first start, or supplied through migrations with SignalARRRPostgresBackplaneSchema.GetCreateScript().
  • Fixed: a node restarting under a stable node id kept its crashed predecessor's registrations alive. Both backplanes now clear their node id's leftovers on startup.

Installing

<PackageReference Include="Cocoar.SignalARRR.Server" Version="5.1.0-beta.1" />
<PackageReference Include="Cocoar.SignalARRR.Server.Backplane.Postgres" Version="5.1.0-beta.1" />
builder.Services.AddSignalARRRPostgresBackplane(options => options
    .WithConnectionString(connectionString)
    .WithSchema("signalarrr")
    .WithNodeId($"{Environment.MachineName}-api-1"));

The TypeScript and Swift packages are published at the same version for consistency; their content is unchanged since 5.0.0. npm publishes under the prerelease dist-tag, so @cocoar/signalarrr keeps resolving to 5.0.0.

Worth knowing before you integrate

  • Primary only. NOTIFY is not replicated; point the backplane at the primary, not a read replica.
  • The listener needs a direct connection. A transaction-pooling PgBouncer cannot hold a LISTEN session. Startup fails within 30 seconds if the subscription cannot be established, and says so.
  • The schema is the isolation unit. It names the tables and the notification channels, so two applications sharing one database need two schemas. Lowercase identifier, at most 50 characters.
  • Throughput ceiling. Low thousands of cross-node messages per second, against Redis's hundreds of thousands. Far above what an application-level backplane sees in practice, but Redis remains the choice for high realtime volume.

Feedback

This preview exists to find what the test suite cannot: real deployments, real load, real database setups. Please open an issue for anything that surprises you.