Akka.Discovery.Redis
1.5.70
Prefix Reserved
dotnet add package Akka.Discovery.Redis --version 1.5.70
NuGet\Install-Package Akka.Discovery.Redis -Version 1.5.70
<PackageReference Include="Akka.Discovery.Redis" Version="1.5.70" />
<PackageVersion Include="Akka.Discovery.Redis" Version="1.5.70" />
<PackageReference Include="Akka.Discovery.Redis" />
paket add Akka.Discovery.Redis --version 1.5.70
#r "nuget: Akka.Discovery.Redis, 1.5.70"
#:package Akka.Discovery.Redis@1.5.70
#addin nuget:?package=Akka.Discovery.Redis&version=1.5.70
#tool nuget:?package=Akka.Discovery.Redis&version=1.5.70
Akka.Discovery.Redis
Redis-based service discovery for Akka.NET. Each node registers itself in Redis under a
time-to-live (TTL) key and refreshes it on a heartbeat; peers discover one another by scanning
those keys. It is a lightweight alternative to Akka.Discovery.Azure for cluster member discovery,
well suited to .NET Aspire local development and any environment that already runs Redis.
Dead nodes are removed automatically by Redis key expiry — there is no separate pruning process —
and stale (but not-yet-expired) nodes are filtered out of lookups via a configurable
stale-ttl-threshold.
Installation
dotnet add package Akka.Discovery.Redis
Usage with Akka.Hosting
using Akka.Discovery.Redis;
using Akka.Hosting;
builder.Services.AddAkka("MySystem", akka =>
{
akka
.WithClustering()
.WithClusterBootstrap(options =>
{
options.ContactPointDiscovery.ServiceName = "my-service";
options.ContactPointDiscovery.RequiredContactPointsNr = 3;
}, autoStart: true)
.WithRedisDiscovery("localhost:6379");
});
WithRedisDiscovery only registers the discovery plugin; pair it with WithClusterBootstrap for
automated cluster formation.
Options
akka.WithRedisDiscovery(options =>
{
options.ConnectionString = "localhost:6379";
options.ServiceName = "my-service";
options.StaleTtlThreshold = TimeSpan.FromSeconds(90);
options.OperationTimeout = TimeSpan.FromSeconds(10);
});
Configuration
The plugin reads from akka.discovery.redis. See reference.conf for the full set of keys and
their defaults, including ttl, ttl-heartbeat-interval, stale-ttl-threshold,
operation-timeout, retry-backoff, max-retry-backoff, and read-only.
Resilience
- The Redis connection is established lazily inside the discovery guardian actor, so an unreachable Redis at startup never blocks or fails ActorSystem startup — the plugin retries with exponential backoff and recovers once Redis is reachable.
- Every Redis operation is bounded by
operation-timeout. - The heartbeat refreshes each node's TTL key; if a node stops heartbeating, Redis expires the key and the node drops out of discovery.
License
Apache-2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Akka (>= 1.5.70)
- Akka.Discovery (>= 1.5.70)
- Akka.Hosting (>= 1.5.68)
- Google.Protobuf (>= 3.30.2)
- StackExchange.Redis (>= 2.10.14)
-
net6.0
- Akka (>= 1.5.70)
- Akka.Discovery (>= 1.5.70)
- Akka.Hosting (>= 1.5.68)
- Google.Protobuf (>= 3.30.2)
- StackExchange.Redis (>= 2.10.14)
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 |
|---|---|---|
| 1.5.70 | 103 | 8/18/2026 |
* Update to [Akka.NET v1.5.70](https://github.com/akkadotnet/akka.net/releases/tag/1.5.70)
* Update to [Akka.Hosting v1.5.70](https://github.com/akkadotnet/Akka.Hosting/releases/tag/1.5.70)
* **New package: [`Akka.Discovery.Redis`](Akka.Discovery.Redis)** — Redis-based service discovery for Akka.Cluster.Bootstrap. Each node registers under a TTL key and refreshes it on a heartbeat; dead nodes expire automatically (no separate pruning process) and stale entries are filtered out of lookups. A lightweight alternative to `Akka.Discovery.Azure`, well suited to Redis-backed environments and .NET Aspire local development. ([#3444](https://github.com/akkadotnet/Akka.Management/pull/3444))
* **New: .NET Aspire integration** — [`Akka.Aspire.Hosting`](Akka.Aspire.Hosting) (AppHost side) and [`Akka.Aspire`](Akka.Aspire) (service side) bring automated Akka.NET cluster formation to [.NET Aspire](https://learn.microsoft.com/dotnet/aspire). Declare the discovery backend and replica count in your AppHost, and each service replica auto-discovers its peers, forms a cluster, and reports readiness through a health check — no manual HOCON. ([#3445](https://github.com/akkadotnet/Akka.Management/pull/3445))