Akka.DependencyInjection 1.6.0-beta7

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

Using the v1.6 betas? Start here.

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 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.

NuGet packages (18)

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

Package Downloads
Akka.Hosting

Akka.NET Microsoft.Extensions.Hosting support.

Bones.Akka

Package Description

Mumrich.AkkaExt

Package Description

EventSaucing

An event source stack based on NEventStore and Akka

QimErp.Shared.Common

Shared common library for QimErp microservices ERP system. Contains common entities, contracts, services, and utilities used across all QimErp modules.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Akka.DependencyInjection:

Repository Stars
rudzen/ChessLib
C# chess library containing a complete data structure and move generation.
Version Downloads Last Updated
1.6.0-beta7 0 11/10/2026
1.6.0-beta6 254 11/7/2026
1.6.0-beta5 742 11/4/2026
1.6.0-beta4 845 10/28/2026
1.6.0-beta3 2,989 10/7/2026
1.6.0-beta2 616 10/6/2026
1.6.0-beta1 1,612 10/2/2026
1.5.74 4,345 11/5/2026
1.5.73 81,390 10/5/2026
1.5.72 9,084 10/3/2026
1.5.71 88,394 8/27/2026
1.5.70 170,211 7/3/2026
1.5.70-beta2 483 6/30/2026
1.5.70-beta1 489 6/23/2026
1.5.69 121,499 6/12/2026
1.5.68 84,594 5/17/2026
1.5.67 125,188 4/26/2026
1.5.66 1,056 4/24/2026
1.5.65 26,846 4/10/2026
1.5.64 19,345 3/31/2026
Loading failed

Akka.NET 1.6.0-beta7 adds opt-in TLS to Akka.IO TCP, Akka.Streams TCP and Artery remoting, fixes two Akka.Persistence ordering bugs, and ships a DotNetty-to-Artery migration guide. Read the [v1.6 getting started guide](https://github.com/akkadotnet/akka.net/blob/dev/GETTING_STARTED_V1.6.md) for the full upgrade path.

**Akka.IO / TLS**

* TCP now supports opt-in TLS. Pass `TlsClientSettings` to `Tcp.Connect` or `TlsServerSettings` to `Tcp.Bind` and the connection is encrypted and authenticated before any bytes flow. Server-only TLS authenticates the server; mutual TLS has both peers present and validate a certificate. A command without `Tls` uses plaintext TCP exactly as before, and Akka.IO never falls back to plaintext when a configured handshake fails. ([#8771](https://github.com/akkadotnet/akka.net/pull/8771))
* Peer trust is an explicit policy: `TlsPeerPolicy.SystemTrust()` uses the OS chain, `PinnedCertificates(...)` trusts a leaf thumbprint, and `CustomTrust(callback)` hands the decision to your code. Compose extra checks with `.And(...)` - `TlsCertificateValidation.ValidateHostname()`, `ValidateSubject(...)`, `ValidateIssuer(...)` - to narrow an already-trusted peer. `SystemTrust()` ignores only a name-mismatch error and does not check a host name by itself, so add `ValidateHostname()` when DNS identity matters. ([#8771](https://github.com/akkadotnet/akka.net/pull/8771))
* New public types: `TlsClientSettings` and `TlsServerSettings` (immutable, with `ServerOnly`/`Mutual` factories, `WithHandshakeTimeout` and `WithProtocols`), `TlsPeerPolicy`, `TlsCertificateValidation` and the `TlsCertificateValidationCallback` delegate. Certificates stay caller-owned and must outlive the actor system. ([#8771](https://github.com/akkadotnet/akka.net/pull/8771))
* An outgoing `Tcp.Connected` is sent only after the handshake succeeds, and a failed or timed-out handshake (10s default, `WithHandshakeTimeout`) arrives as the existing `Tcp.CommandFailed`. An incoming connection reaches its handler only after its handshake succeeds; the listener stays available for other clients. ([#8771](https://github.com/akkadotnet/akka.net/pull/8771))
* `TlsCertificateLoader` loads PKCS#12 certificates from a file or byte array, or finds one in an X.509 store. It requires an accessible RSA or ECDSA private key and returns a caller-owned certificate - keep it alive until the actor system and every transport using it have stopped. ([#8787](https://github.com/akkadotnet/akka.net/pull/8787))
* **Migration:** `ITransportConnection` implementors must add `InitializeAsync(CancellationToken)` and `Start()`, and `TcpTransportConnection` constructors no longer start pumps automatically. This affects only the v1.6 beta API; v1.5 is unchanged. See the [v1.6 breaking-change ledger](https://github.com/akkadotnet/akka.net/blob/dev/BREAKING_CHANGES_V1.6.md). ([#8771](https://github.com/akkadotnet/akka.net/pull/8771))

**Akka.Streams**

* `Tcp.BindTls`, `Tcp.BindAndHandleTls` and `Tcp.OutgoingConnectionTls` add TLS listeners and outgoing connections, using the same `TlsClientSettings`/`TlsServerSettings` as Akka.IO. `BindAndHandleTls` completes when the listener is ready, and an outgoing graph's materialized value completes after authentication. Existing plaintext `Bind`, `BindAndHandle` and `OutgoingConnection` keep their current behavior, and TLS does not change back-pressure or half-close semantics. ([#8788](https://github.com/akkadotnet/akka.net/pull/8788), addresses [#2750](https://github.com/akkadotnet/akka.net/issues/2750))
* A failed TCP command now surfaces its original exception as the `InnerException` of the `StreamTcpException` instead of dropping it, so a TLS handshake failure reports why it failed. ([#8788](https://github.com/akkadotnet/akka.net/pull/8788))

**Akka.Remote / Artery (experimental)**

* Artery can now run over TLS. Add one `ArteryTlsSetup` carrying an immutable `ArteryTlsSettings` profile to the actor-system setup and Artery uses TLS for inbound connections and every outbound channel - control, ordinary and large-message traffic. Without it, Artery stays on plaintext TCP, and a failed handshake closes the connection rather than retrying as plaintext. Profiles and validation callbacks are configured in code; there is no Artery TLS HOCON schema. ([#8791](https://github.com/akkadotnet/akka.net/pull/8791), refs [#4436](https://github.com/akkadotnet/akka.net/issues/4436))
* **Deployment note:** TLS is all-or-nothing per transport. A TLS-enabled Artery node cannot associate with a plaintext Artery node, and a TLS-enabled Akka.IO listener will not accept plaintext clients. Configure every participating node the same way. ([#8771](https://github.com/akkadotnet/akka.net/pull/8771), [#8791](https://github.com/akkadotnet/akka.net/pull/8791))
* Akka.Hosting's `WithArteryRemoting` exposes the same profile. It enables Artery, allows explicit bind host and port overrides, preserves an already selected Cluster, Remote or custom actor-ref provider, and adds or replaces the typed TLS setup when `Tls` is set. ([#8791](https://github.com/akkadotnet/akka.net/pull/8791))

**Akka.Persistence**

* Stashed commands now run in send order when an async `Persist`/`PersistAll` handler, or the async `onCompleteAsync` callback of `PersistAll`, completes asynchronously. Two unstashes used to fire for the same invocation in the same turn, and because each `Unstash()` puts the oldest stashed command at the front of the mailbox, the second overtook the first. The same double unstash hit `PersistAsync`, `PersistAllAsync` and `DeferAsync` with async handlers. Synchronous handlers behave as before. ([#8941](https://github.com/akkadotnet/akka.net/pull/8941), fixes [#8942](https://github.com/akkadotnet/akka.net/issues/8942))
* `Desequenced` is now exempt from serialization verification. With `akka.actor.serialize-messages = on`, every journal write reply was round-tripped through the `System.Object` JSON fallback before reaching the persistent actor, so the persist callback received a JSON copy of the event instead of the instance that was persisted. For a C# 15 union event that copy arrived with `Value == null`, so the handler saw an empty event. ([#8912](https://github.com/akkadotnet/akka.net/pull/8912), fixes [#8910](https://github.com/akkadotnet/akka.net/issues/8910))

**Docs**

* New [TLS for Akka.IO, Akka.Streams, and Artery](https://github.com/akkadotnet/akka.net/blob/dev/docs/articles/remoting/tls-for-io-streams-artery.md) guide covers server-only and mutual TLS, trust policies, certificate lifetime, and the Streams and Artery APIs. ([#8771](https://github.com/akkadotnet/akka.net/pull/8771), [#8787](https://github.com/akkadotnet/akka.net/pull/8787), [#8788](https://github.com/akkadotnet/akka.net/pull/8788), [#8791](https://github.com/akkadotnet/akka.net/pull/8791))
* New [Migrating From DotNetty to Artery](https://github.com/akkadotnet/akka.net/blob/dev/docs/articles/remoting/dotnetty-to-artery.md) guide covers the transport change, cluster transition, address changes, Hosting, and bind-address limitations. ([#8913](https://github.com/akkadotnet/akka.net/pull/8913))

**Internal**

* Native AOT verification uses the serviced .NET 10 SDK 10.0.403. ([#8914](https://github.com/akkadotnet/akka.net/pull/8914))

1 contributor since release 1.6.0-beta6

| COMMITS | LOC+ | LOC- | AUTHOR          |
|---------|------|------|-----------------|
| 8       | 5511 | 284  | Aaron Stannard  |