Akka.Streams.Amqp.V1 1.5.74

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

Akka.Streams.Amqp.V1

NuGet NuGet downloads

AMQP 1.0 sources and sinks for Akka.NET Streams, using AMQPNetLite and application-selected Akka.NET serializers. The package targets .NET Standard 2.0 and .NET 6.0. For RabbitMQ's AMQP 0-9-1 adapter, see Akka.Streams.Amqp.RabbitMq.

dotnet add package Akka.Streams.Amqp.V1

Use a broker with an AMQP 1.0 acceptor. Queue/address creation, authorization and routing depend on the broker configuration. This connector supplies AMQP link settings; it does not configure the broker.

Publish and receive

Set AMQP_CONNECTION_STRING to an AMQP address including your broker's endpoint and credentials. This complete example publishes two strings and receives two from a dedicated alpakka-demo queue. Provision that queue or enable the broker's corresponding automatic-creation policy first.

using System;
using Akka.Actor;
using Akka.Streams;
using Akka.Streams.Amqp.V1;
using Akka.Streams.Amqp.V1.Dsl;
using Akka.Streams.Dsl;
using Amqp;
using Address = Amqp.Address;

var address = new Address(Environment.GetEnvironmentVariable("AMQP_CONNECTION_STRING")
    ?? throw new InvalidOperationException("Set AMQP_CONNECTION_STRING."));
var system = ActorSystem.Create("amqp-example");
var serializer = system.Serialization.FindSerializerForType(typeof(string));
var sender = new AddressSinkSettings<string>(address, "demo-sender", "alpakka-demo", serializer);
var receiver = new AddressSourceSettings<string>(address, "demo-receiver", "alpakka-demo", 10, serializer);
try
{
    await Source.From(new[] { "first", "second" })
        .RunWith(AmqpSink.Create(sender), system.Materializer());
    var messages = await AmqpSource.Create(receiver).Take(2)
        .RunWith(Sink.Seq<string>(), system.Materializer());
    foreach (var message in messages)
        Console.WriteLine(message);
}
finally
{
    await system.Terminate();
    await receiver.CloseConnectionAsync();
    await sender.CloseConnectionAsync();
}

AmqpSink.Create<T> consumes values and materializes a Task reporting upstream completion/failure, synchronous conversion/send failures and link disconnection. A disconnection reported by the link callback uses DisconnectedException; its Error can be null when no AMQP error was supplied. AmqpSource.Create<T> emits values and materializes NotUsed.

The built-in settings serialize values with the supplied Akka.Serialization.Serializer, send the resulting byte array as the message body, and deserialize received byte arrays using that serializer. Peers must agree on this representation; a plain AMQP string body is not the same format. IAmqpSinkSettings<T> and IAmqpSourceSettings<T> let applications supply different byte conversion/link behavior.

Settings and ownership

Settings Connection behavior
AddressSinkSettings<T> / AddressSourceSettings<T> Create their own AMQP connection and session when connecting. Permit initial connection retries. Call CloseConnectionAsync on each settings object after stopping its stream.
NamedQueueSinkSettings<T> / NamedQueueSourceSettings<T> Use your existing Amqp.Session, link name and queue name. The application owns that session and connection; these settings do not retry initial connection creation.

Stage shutdown closes its sender/receiver link. It does not automatically close the session or connection, including those created by address settings. Stop streams before closing their settings or borrowed clients. Address settings' initial connection retries do not provide reconnection after an established link disconnects; that disconnection fails the stream.

Source settings require a credit value. The SDK receiver starts when the source materializes and can buffer deliveries before downstream demand. The source accepts a successfully converted message before emitting it, so downstream processing happens after AMQP acceptance. Choose this delivery behavior deliberately; this API does not defer acceptance until your downstream work completes.

With default stopping supervision, a conversion error rejects the message and fails the source. A non-stopping source strategy leaves the failed message unsettled. The sink does not apply a supervision decider. The connector does not provide exactly-once processing or transactions spanning your application work.

Local integration tests

From the repository root, with the pinned .NET SDK and Docker running Linux containers:

dotnet test src/Amqp/Akka.Streams.Amqp.V1.Tests/Akka.Streams.Amqp.V1.Tests.csproj -c Release --framework net10.0

The tests use Testcontainers.ActiveMq's ArtemisBuilder with the official apache/activemq-artemis:2.42.0 image. They discover the mapped AMQP-capable 61616 acceptor and remove the owned broker afterward. No custom broker image, fixed host port or separately installed service is required.

Coverage includes native AMQPNetLite peers, named/address settings, serialized Unicode payloads, acceptance/redelivery observations, link closure and completion-task failures. These results establish the exercised protocol behavior against the pinned Artemis instance; they do not establish other brokers' address policies, clustering, TLS or production recovery behavior. See Artemis AMQP support and AMQPNetLite documentation.

License

Apache-2.0

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

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.74 114 11/13/2026
1.5.59 605 1/27/2026
1.5.57 240 12/23/2025
1.5.40 330 4/18/2025
1.5.37 271 1/23/2025
1.5.33 230 12/26/2024
1.5.28 255 9/9/2024
1.5.18 283 3/29/2024
1.5.15 304 1/11/2024
1.5.8 441 6/30/2023
1.5.7 389 5/31/2023
1.5.0.1 470 3/7/2023
1.5.0 447 3/3/2023
1.4.49 433 3/3/2023
1.0.1-beta4 679 10/21/2022
1.0.1-beta3 370 10/21/2022
1.0.1-beta2 383 7/25/2022
1.0.1-beta1 414 6/8/2022
1.0.0-beta9 427 3/17/2022
1.0.0-beta8 419 12/21/2021
Loading failed

* Bump the minimum Akka.NET dependency to [1.5.74](https://github.com/akkadotnet/akka.net/releases/tag/1.5.74), with aligned Streams and TestKit dependencies.
* Include an individual README in each of the twelve connector packages, with usage, ownership, delivery semantics, limitations and linked NuGet version/download badges. Expand the repository README and documentation navigation.
* Update compatible Azure, AWS, AMQP and SignalR dependencies. Package READMEs document remaining SDK support and version limitations.
* Azure Service Bus JSON sources await successful message completion before emitting values and propagate settlement failures.
* Fix SQS batch-response correlation when response entries arrive in a different order.
* Improve SNS and Kinesis completion, cancellation and failure handling.
* Remove blocking SignalR send waits while preserving sequential delivery and existing materialized values.
* Propagate AMQP conversion and connection failures through the materialized completion task.
* Correct CSV parsing across split CRLF/escape sequences and XML parser empty-element/document completion, including reader and feeder cleanup.
* Improve rotating-file sink cleanup on completion and failures.
* Add required service integration, package/API, unchanged-consumer and packaged-example validation. Harden Event Hubs startup and Service Bus polling tests.
* Replace legacy FluentAssertions usages with xUnit assertions, retaining their payload, ordering, exception and deadline checks.
* Mark the historical `Akka.Streams.Channels`, `Akka.Streams.Azure.EventHub.V5` and `Akka.Streams.SignalR.AspNetCore` packages as Legacy on NuGet. See the [migration guide](https://alpakka.getakka.net/documentation/LegacyPackages.html) for their maintained replacements and compatibility requirements.

**Upstream compatibility:** Alpakka retains its public APIs and library targets. Raising the Akka.NET minimum from 1.5.60 inherits upstream binary changes: the old `RetrySupport.Retry` overload with an `int randomFactor` is replaced by a `double` overload, and `ISourceQueue<T>` requires `OfferAsync(T, CancellationToken)`. Applications using that old compiled overload or custom queue implementations need to update and rebuild against the new dependencies.