Repository navigation
v4.3.0
Cocoar.SignalARRR v4.3.0
Adds a Redis-compatible cluster backplane for multi-node SignalARRR deployments.
What is new
SignalARRR can now scale out across multiple application nodes using a Redis-compatible backend such as Redis, Valkey, or Garnet.
This release adds the infrastructure needed to route typed server-to-client calls across nodes while preserving the existing in-memory single-node mode for applications that do not opt in to the backplane.
What changed
- Redis-compatible backplane: Added opt-in multi-node routing via
AddSignalARRRRedisBackplane(...) - Distributed connection registry: Tracks connections, hub membership, users, groups, and attributes across the cluster
- Cluster-wide delivery: Cross-node send/invoke by connection, broadcast to all clients, and group fanout
- Distributed targeting:
WithUser(...)andWithAttribute(...)now work across nodes - Cluster-wide invoke:
InvokeAllAsync(...)andInvokeOneAsync(...)aggregate results across the cluster - Remote group management:
AddToGroupAsync(...)andRemoveFromGroupAsync(...)work for connections hosted on other nodes - Presence APIs:
ClientManagercan now return cluster-aware connection and user presence snapshots - Active stale-node cleanup: Dead-node registrations are removed by heartbeat and timeout sweep after crashes
- Hardening tests: Added multi-node integration coverage for reconnects, remote group leave, ordered cross-node push delivery, and crash recovery
- Documentation: Added backplane and clustering docs, API reference updates, and package guidance
Important behavior
- Opt-in only: If you do not configure the backplane, SignalARRR continues to behave exactly as before in single-node in-memory mode
- Transient transport: The backplane distributes live traffic; it is not a durable queue or replay log
- Eventual convergence: Presence, group membership, and routing metadata converge quickly across nodes, but not atomically
Typical setup
builder.Services.AddSignalARRR(b =>
b.AddServerMethodsFrom(typeof(ChatHub).Assembly));
builder.Services.AddSignalARRRRedisBackplane(options => options
.WithConnectionString("localhost:6379,abortConnect=false")
.WithChannelPrefix("my-app")
.WithNodeId($"{Environment.MachineName}-api-1"));Why this matters
This release turns SignalARRR from a pure single-node in-memory solution into a foundation for real clustered deployments, including:
- load-balanced multi-node apps
- distributed user targeting
- shared groups across nodes
- cluster-wide presence
- collaboration-oriented scenarios built on top of live presence and routing