Akka.Cluster.Sharding 1.5.57

Prefix Reserved
dotnet add package Akka.Cluster.Sharding --version 1.5.57
                    
NuGet\Install-Package Akka.Cluster.Sharding -Version 1.5.57
                    
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="Akka.Cluster.Sharding" Version="1.5.57" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Akka.Cluster.Sharding" Version="1.5.57" />
                    
Directory.Packages.props
<PackageReference Include="Akka.Cluster.Sharding" />
                    
Project file
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 Akka.Cluster.Sharding --version 1.5.57
                    
#r "nuget: Akka.Cluster.Sharding, 1.5.57"
                    
#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 Akka.Cluster.Sharding@1.5.57
                    
#: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=Akka.Cluster.Sharding&version=1.5.57
                    
Install as a Cake Addin
#tool nuget:?package=Akka.Cluster.Sharding&version=1.5.57
                    
Install as a Cake Tool

Akka.NET

Akka.NET logo

Discord NuGet Nuget

Akka.NET is a .NET port of the popular Akka project from the Scala / Java community. We are an idiomatic .NET implementation of the actor model built on top of the .NET Common Language Runtime.

Akka.NET is a .NET Foundation project.

.NET Foundation Logo

How is Akka.NET Used?

Akka.NET can be used in-process or inside large, distributed real-time systems; we support a wide variety of use cases.

Akka.NET can be used to solve the following types of problems:

  1. Concurrency - Akka.NET actors only process messages one-at-a-time and they do so in first in, first out (FIFO) order; this means that any application state internal to an actor is automatically thread-safe without having to use locks or any other shared-memory synchronization mechanisms.
  2. Stream Processing - Akka.NET actors and Akka.Streams make it easy to build streaming applications, used for processing incoming streams of data or incoming streams of live events such as UI or network events inside native applications.
  3. Event-Driven Programming - actors make it easy to build event-driven applications, as actors' message-processing routines naturally express these types of designs.
  4. Event Sourcing and CQRS - Akka.Persistence, used by actors to make their state re-entrant and recoverable across restarts or migrations between nodes, natively supports event sourcing. Akka.Persistence.Query can be used to compute CQRS-style projections and materialized views from Akka.Persistence data.
  5. Location Transparency - Akka.Remote makes it simple for actors in remote processes to transparently communicate with each other.
  6. Highly Available, Fault-Tolerant Distributed Systems - Akka.Cluster, Akka.Cluster.Sharding, and other tools built on top of Akka.Cluster make it possible to build highly available and fault-tolerant distributed systems by leveraging peer-to-peer programming models with topology-aware message routing and distribution.
  7. Low Latency, High Throughput - Akka.NET aims to be low latency and high throughput, processing 10s millions of messages per second in-memory and hundreds of thousands of messages per second over remote connections.

Where Can I Learn Akka.NET?

You can start by taking the Akka.NET Bootcamp, but there are many other great learning resources for Akka.NET Online.

Build Status

Stage Status
NuGet Pack Build Status
.NET Framework Unit Tests Build Status
.NET Unit Tests (Windows) Build Status
.NET Unit Tests (Linux) Build Status
.NET MultiNode Tests (Windows) Build Status
.NET MultiNode Tests (Linux) Build Status
Docs Build Status

Install Akka.NET via NuGet

If you want to include Akka.NET in your project, you can install it directly from NuGet

To install Akka.NET Distributed Actor Framework, run the following command in the Package Manager Console

PM> Install-Package Akka.Hosting

Akka.Hosting includes the base Akka NuGet package and also provides an easy interface to integrate Akka.NET with the most-used parts of the Microsoft.Extensions ecosystem: Configuration, Logging, Hosting, and DependencyInjection. We encourage developers to adopt it.

And if you need F# support:

PM> Install-Package Akka.FSharp

Akka.NET Project Templates

To create your own Akka.NET projects using our templates (Akka.Templates), install them via the dotnet CLI:

dotnet new install "Akka.Templates::*"

This will make our templates available via dotnet new on the CLI and as new project templates inside any .NET IDE such as Visual Studio or JetBrains Rider. You can view the full list of templates included in our package here: https://github.com/akkadotnet/akkadotnet-templates#available-templates

Builds

Please see Building Akka.NET.

To access nightly Akka.NET builds, please see the instructions here.

Support

If you need help getting started with Akka.NET, there's a number of great community resources online:

If you and your company are interested in getting professional Akka.NET support, you can contact Petabridge for dedicated Akka.NET support.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (17)

Showing the top 5 NuGet packages that depend on Akka.Cluster.Sharding:

Package Downloads
Akka.Cluster.Hosting

Akka.Cluster and Akka.Cluster.Sharding Microsoft.Extensions.Hosting support.

Petabridge.Cmd.Cluster.Sharding

Akka.Cluster.Sharding Petabridge.Cmd palettes for shard management and monitoring.

wyvern.entity

Package Description

Akkling.Cluster.Sharding

F# wrapper library for Akka.NET cluster sharding module.

Akkatecture.Clustering

clustering library for akkatecture to enable distributed scenarios

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on Akka.Cluster.Sharding:

Repository Stars
petabridge/akkadotnet-code-samples
Akka.NET professional reference code samples
ThembisileNGQ/Akkatecture
a cqrs and event sourcing framework for dotnet core using akka.net
Aaronontheweb/InMemoryCQRSReplication
Akka.NET Reference Architecture - CQRS + Sharding + In-Memory Replication
Horusiath/AkkaCQRS
Event sourcing example build on Akka.NET with persistence plugin
Version Downloads Last Updated
1.5.57 497 12/11/2025
1.5.57-beta2 959 12/3/2025
1.5.57-beta1 669 12/2/2025
1.5.56 1,677 11/25/2025
1.5.55 20,863 10/26/2025
1.5.54 3,212 10/17/2025
1.5.53 15,412 10/10/2025
1.5.52 8,482 10/6/2025
1.5.51 44,907 10/1/2025
1.5.50 5,677 9/22/2025
1.5.49 4,797 9/10/2025
1.5.48 12,463 8/22/2025
1.5.47 2,453 8/14/2025
1.5.46 10,097 7/17/2025
1.5.45 12,289 7/7/2025
1.5.44 9,624 6/19/2025
1.5.43 5,058 6/10/2025
1.5.42 27,122 5/21/2025
1.5.41 2,486 5/6/2025
1.5.40 112,005 3/24/2025
1.5.39 7,209 3/14/2025
1.5.38 66,248 2/17/2025
1.5.37 27,972 1/23/2025
1.5.36 3,183 1/22/2025
1.5.35 7,196 1/13/2025
1.5.34 3,225 1/7/2025
1.5.33 39,360 12/23/2024
1.5.32 14,289 12/4/2024
1.5.31 18,200 11/11/2024
1.5.30 44,490 10/3/2024
1.5.29 2,658 10/1/2024
1.5.28 53,604 9/4/2024
1.5.28-beta1 209 8/23/2024
1.5.27.1 193,543 7/26/2024
1.5.27 1,483 7/25/2024
1.5.27-beta2 195 7/3/2024
1.5.27-beta1 147 7/3/2024
1.5.26 100,608 6/27/2024
1.5.25 124,722 6/14/2024
1.5.24 6,918 6/7/2024
1.5.23 1,696 6/6/2024
1.5.22 2,836 6/3/2024
1.5.21 4,930 5/28/2024
1.5.20 32,817 4/29/2024
1.5.19 19,439 4/15/2024
1.5.18 44,219 3/12/2024
1.5.17.1 10,774 3/2/2024
1.5.17 1,799 2/29/2024
1.5.16 28,249 1/29/2024
1.5.15 43,557 1/10/2024
1.5.14 32,527 11/3/2023
1.5.13 103,195 9/18/2023
1.5.13-beta1 550 8/25/2023
1.5.12 23,123 8/2/2023
1.5.11 4,077 7/27/2023
1.5.10 10,016 7/25/2023
1.5.9 9,505 7/17/2023
1.5.8 37,393 6/15/2023
1.5.7 26,347 5/17/2023
1.5.6 11,109 5/8/2023
1.5.5 39,464 5/4/2023
1.5.4 13,735 4/25/2023
1.5.3 3,646 4/20/2023
1.5.2 22,005 4/6/2023
1.5.1 9,481 3/15/2023
1.5.0 13,005 3/2/2023
1.5.0-beta6 1,188 3/1/2023
1.5.0-beta5 682 3/1/2023
1.5.0-beta4 835 2/28/2023
1.5.0-beta3 876 2/27/2023
1.5.0-beta2 697 2/23/2023
1.5.0-beta1 743 2/20/2023
1.5.0-alpha4 1,151 2/1/2023
1.5.0-alpha3 966 11/15/2022
1.5.0-alpha2 826 10/17/2022
1.5.0-alpha1 822 8/22/2022
1.4.51 11,679 6/28/2023
1.4.50 5,299 3/15/2023
1.4.49 16,895 1/27/2023
1.4.49-beta1 782 1/11/2023
1.4.48 30,269 1/5/2023
1.4.47 11,121 12/9/2022
1.4.46 26,990 11/15/2022
1.4.45 24,560 10/19/2022
1.4.44 3,451 10/17/2022
1.4.43 12,375 9/27/2022
1.4.42 3,162 9/23/2022
1.4.41 135,955 8/31/2022
1.4.40 14,865 7/22/2022
1.4.39 87,514 6/1/2022
1.4.38 43,707 5/6/2022
1.4.37 11,907 4/14/2022
1.4.36 10,716 4/5/2022
1.4.35 23,260 3/18/2022
1.4.34 8,624 3/7/2022
1.4.33 8,851 2/14/2022
1.4.32 15,261 1/18/2022
1.4.31 30,094 12/21/2021
1.4.30 2,555 12/20/2021
1.4.29 2,958 12/13/2021
1.4.28 52,950 11/10/2021
1.4.27 48,025 10/11/2021
1.4.26 5,570 9/28/2021
1.4.25 6,635 9/8/2021
1.4.24 9,384 8/17/2021
1.4.23 4,418 8/10/2021
1.4.22 6,807 8/5/2021
1.4.21 20,642 6/16/2021
1.4.21-beta1 1,068 6/4/2021
1.4.20 15,290 5/12/2021
1.4.19 15,412 4/28/2021
1.4.18 11,733 3/23/2021
1.4.17 7,021 3/10/2021
1.4.16 30,045 1/22/2021
1.4.15 3,297 1/20/2021
1.4.14 11,341 12/30/2020
1.4.13 4,012 12/16/2020
1.4.12 19,903 11/16/2020
1.4.11 13,286 11/5/2020
1.4.10 19,642 8/20/2020
1.4.9 15,976 7/21/2020
1.4.8 49,675 6/17/2020
1.4.7 6,540 5/27/2020
1.4.6 7,551 5/12/2020
1.4.5 5,213 4/29/2020
1.4.4 11,421 3/31/2020
1.4.3 5,872 3/18/2020
1.4.2 5,153 3/13/2020
1.4.1 10,127 3/11/2020
1.4.1-rc3 1,218 3/10/2020
1.4.1-rc2 1,042 3/10/2020
1.4.1-rc1 1,466 2/28/2020
1.4.0-beta4 2,675 1/28/2020
1.4.0-beta3 7,221 10/30/2019
1.4.0-beta2 4,029 9/23/2019
1.4.0-beta1 2,794 7/19/2019
1.4.0-beta 1,232 10/30/2019
1.3.19-beta 152 5/2/2024
1.3.18-beta 10,856 3/9/2020
1.3.17-beta 7,017 12/20/2019
1.3.16-beta 3,151 11/14/2019
1.3.15-beta 4,811 9/23/2019
1.3.14-beta 7,799 7/30/2019
1.3.13-beta 20,811 4/30/2019
1.3.12-beta 13,079 3/14/2019
1.3.11-beta 10,833 12/18/2018
1.3.10-beta 88,351 11/2/2018
1.3.9-beta68 41,937 8/23/2018
1.3.9-beta67 1,440 8/23/2018
1.3.9-beta 1,410 8/30/2018
1.3.8-beta66 9,424 6/5/2018
1.3.8-beta65 1,859 6/5/2018
1.3.7-beta64 2,488 5/15/2018
1.3.7-beta63 1,917 5/15/2018
1.3.6-beta62 3,940 4/17/2018
1.3.6-beta61 1,741 4/17/2018
1.3.5-beta60 9,393 2/22/2018
1.3.5-beta59 1,699 2/22/2018
1.3.4-beta58 2,083 2/1/2018
1.3.4-beta57 1,897 2/1/2018
1.3.3-beta56 1,875 1/19/2018
1.3.3-beta55 1,941 1/19/2018
1.3.2-beta54 20,807 10/21/2017
1.3.2-beta53 1,737 10/21/2017
1.3.2-beta 2,679 10/24/2017
1.3.1-beta52 2,819 9/5/2017
1.3.1-beta51 1,693 9/5/2017
1.3.0-beta50 1,774 8/18/2017
1.3.0-beta48 1,681 8/17/2017
1.3.0-beta47 1,723 8/17/2017
1.3.0-beta46 1,709 8/11/2017
1.2.3.43-beta 3,287 7/10/2017
1.2.3.41-beta 1,721 7/10/2017
1.2.2.40-beta 1,769 6/28/2017
1.2.2.39-beta 1,674 6/28/2017
1.2.1.38-beta 1,722 6/23/2017
1.2.1.37-beta 1,762 6/23/2017
1.2.0.36-beta 11,202 4/13/2017
1.2.0.35-beta 1,942 4/13/2017
1.2.0.34-beta 1,662 4/12/2017
1.2.0.33-beta 2,348 4/12/2017
1.1.3.32-beta 3,049 1/23/2017
1.1.3.31-beta 1,934 1/23/2017
1.1.2.30-beta 3,449 9/22/2016
1.1.2.29-beta 2,064 9/22/2016
1.1.1.28-beta 1,840 7/16/2016
1.1.1.27-beta 1,800 7/16/2016
1.1.0.26-beta 1,835 7/7/2016
1.0.8.25-beta 3,548 4/26/2016
1.0.8.24-beta 1,812 4/26/2016
1.0.7.18-beta 1,823 4/6/2016

Akka.NET v1.5.57 is a minor release containing significant new features for Akka.Persistence and structured/semantic logging.

**Akka.Persistence Completion Callbacks and Async Handler Support**

* [Persistence completion callbacks via Defer - simplified alternative](https://github.com/akkadotnet/akka.net/pull/7957) - This release adds completion callback and async handler support to `Persist`, `PersistAsync`, `PersistAll`, and `PersistAllAsync` methods in Akka.Persistence. Key improvements include:
   - **Async Handler Support**: All persist methods now support `Func<TEvent, Task>` handlers for async event processing
   - **Completion Callbacks**: `PersistAll` and `PersistAllAsync` now accept optional completion callbacks (both sync `Action` and async `Func<Task>`) that execute after all events are persisted and handled
   - **Ordering Guarantees**: Completion callbacks use `Defer`/`DeferAsync` internally to maintain strict ordering guarantees
   - **Zero Breaking Changes**: All new APIs are additive overloads

**Persistence Code Examples:**

```csharp
// Async handler support - process events asynchronously
Persist(new OrderPlaced(orderId), async evt =>
{
   await _orderService.ProcessOrderAsync(evt);
});

// PersistAll with completion callback - know when all events are done
PersistAll(orderEvents, evt =>
{
   _state.Apply(evt);
}, onComplete: () =>
{
   // All events persisted and handlers executed
   _logger.Info("Order batch completed");
   Sender.Tell(new BatchComplete());
});

// PersistAll with async handler AND async completion callback
PersistAll(events,
   handler: async evt => await ProcessEventAsync(evt),
   onCompleteAsync: async () =>
   {
       await NotifyCompletionAsync();
       Sender.Tell(Done.Instance);
   });

// PersistAllAsync with completion - allows commands between handlers
PersistAllAsync(largeEventBatch,
   handler: evt => _state.Apply(evt),
   onComplete: () => Sender.Tell(new BatchProcessed()));
```

The implementation maintains Akka.Persistence's strict ordering guarantees by using `Defer`/`DeferAsync` for completion callbacks, ensuring they execute in order even when called with empty event collections. The new async handler invocations (`IAsyncHandlerInvocation`) are processed via `RunTask` to preserve the actor's single-threaded execution model.

**Native Semantic Logging Support**

* [Add native semantic logging support with property extraction](https://github.com/akkadotnet/akka.net/pull/7955) - Fixes [issue #7932](https://github.com/akkadotnet/akka.net/issues/7932). This release adds comprehensive structured logging support to Akka.NET with both positional (`{0}`) and named (`{PropertyName}`) message template parsing, enabling seamless integration with modern logging frameworks like Serilog, NLog, and Microsoft.Extensions.Logging. Key capabilities include:
   - New `LogMessage.PropertyNames` and `GetProperties()` APIs for property extraction
   - `SemanticLogMessageFormatter` as the new default formatter
   - Performance optimized with 75% allocation reduction compared to the previous implementation
   - Zero new dependencies and fully backward compatible
   - EventFilter support for semantic templates in unit tests

1 contributor since release 1.5.56

| COMMITS | LOC+ | LOC- | AUTHOR         |
|---------|------|------|----------------|
| 2       | 3703 | 81   | Aaron Stannard |

To see the full set of changes in Akka.NET v1.5.57, click here:
* [1.5.57-beta1 milestone](https://github.com/akkadotnet/akka.net/milestone/140?closed=1)
* [1.5.57-beta2 milestone](https://github.com/akkadotnet/akka.net/milestone/141?closed=1)