Skip to content
akkadotnetPublic

About

Akka Streams Connectors - Alpakka

Topics

Resources

Code of conduct

Contributing

Stars

112 stars

Watchers

7 watching

Forks

Latest commit

 

History

867 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpakka: Akka Streams connectors

Alpakka connects Akka.NET Streams to messaging systems, cloud services and local data formats. Its connectors provide sources, flows and sinks that you compose with the rest of your stream: consume messages, transform records, publish results, process files or exchange SignalR messages.

Choose the packages your application needs. Each package README explains its APIs, configuration, defaults, client ownership, delivery semantics and limitations, with examples and commands for its tests. Packages built from current source include that README; older published releases may omit it.

Documentation · Running tests · Legacy package migrations

Contents

Getting started

  1. Find your service or data format in the package catalog.

  2. Install that connector in your application directory. For example, to parse or format CSV:

    dotnet add package Akka.Streams.Csv
  3. Follow the CSV package examples, or your chosen connector's README, to create and materialize a stream. Messaging connectors also explain how to configure the broker or SDK client they use.

If you are new to streams, start with the Akka.NET Streams introduction. Connector-specific acknowledgments, retries and buffering still matter: completing a stream does not universally mean that a remote peer has received or persisted every message.

Maintained packages

Connector and README NuGet package Version Downloads
AMQP 1.0 Akka.Streams.Amqp.V1 NuGet version NuGet downloads
RabbitMQ Akka.Streams.Amqp.RabbitMq NuGet version NuGet downloads
Azure Event Hubs Akka.Streams.Azure.EventHub NuGet version NuGet downloads
Azure Service Bus Akka.Streams.Azure.ServiceBus NuGet version NuGet downloads
Azure Queue Storage Akka.Streams.Azure.StorageQueue NuGet version NuGet downloads
Amazon Kinesis Akka.Streams.Kinesis NuGet version NuGet downloads
Amazon SNS Akka.Streams.Sns NuGet version NuGet downloads
Amazon SQS Akka.Streams.SQS NuGet version NuGet downloads
CSV Akka.Streams.Csv NuGet version NuGet downloads
File Akka.Streams.File NuGet version NuGet downloads
SignalR Akka.Streams.SignalR NuGet version NuGet downloads
XML Akka.Streams.Xml NuGet version NuGet downloads

The libraries retain their .NET Standard 2.0 and .NET 6.0 assets, except SignalR, which targets .NET 6.0. Test and sample hosts may use newer frameworks independently of the shipped libraries. Check a package README before combining SDKs: the SQS adapter uses AWS SDK v3, while SNS and Kinesis use v4.

Examples

Package READMEs contain focused usage examples. The repository also includes runnable distributed samples:

Sample Entry point Resources
Azure Service Bus ServiceBus.AppHost Producer, consumer, Service Bus emulator and SQL companion
Azure Event Hubs EventHub.AppHost Producer, consumer, Event Hubs emulator and Blob checkpoint storage
SignalR SignalR.AppHost ASP.NET Core application

Use the repository SDK to run an AppHost, for example:

dotnet run --project src/Azure/Examples/Simple/ServiceBus/ServiceBus.AppHost/ServiceBus.AppHost.csproj

The Azure emulator samples require Docker with Linux containers. Check the relevant package README and sample configuration before using an external service or supplying credentials.

Build and test

To work on Alpakka itself, install the SDK selected by global.json, then run these commands from the repository root:

dotnet restore Alpakka.slnx
dotnet build Alpakka.slnx -c Release

Run the suite for the connector you are changing. A local CSV example is:

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

The test guide lists every suite, Docker requirements, Windows coverage and the required package/consumer checks. Service fixtures own their containers or Aspire resources and discover their endpoints; those tests do not need a cloud account or separately installed broker. CSV, XML and filesystem suites exercise their local operations directly. SignalR tests use TestServer and Aspire-owned Kestrel without Docker.

Compatibility and upgrades

Packages built from this revision require Akka.Streams 1.5.74 or later. Streams and TestKit package versions are aligned centrally.

The Akka.NET upgrade from the previous 1.5.60 minimum inherits upstream binary changes involving the RetrySupport.Retry overload with an int randomFactor and custom implementations of ISourceQueue<T>. See the unreleased compatibility notes before upgrading an existing application.

Changes follow extend-only design: preserve public signatures, shipped targets, wire formats, documented defaults and client ownership. Add overloads or new types for new behavior. A dependency upgrade also needs source, binary and behavior checks; a compatible-looking NuGet framework badge is not sufficient evidence.

Required checks compare against a released package, execute an unchanged consumer against the candidate, inspect the actual NuGet archive and compile its README examples. Integration coverage uses Aspire.Hosting.Testing or Testcontainers where a real service boundary is needed, with owned resources, discovered endpoints, bounded readiness and visible failures. CSV, XML and local filesystem tests use the actual local operations they exercise.

Deprecation guidance must identify a verified replacement and migration requirements. Keep published artifacts available; do not remove working APIs, add error-level obsolete attributes or silently change targets. See the package migration guide.

For an existing application, read release notes, the package README and the legacy migration guide before changing package IDs or SDK major versions. Retaining a library target does not extend an upstream SDK's support lifecycle. Dependency support and vulnerability limitations must remain visible even when behavioral checks pass.

Repository layout

Path Purpose
src Connector libraries, their tests and samples
compatibility Released-package consumer probes used by compatibility checks
docs DocFX documentation, contributor guidance and migration guides
build-system CI, package validation, code standards and documentation builds
Directory.Packages.props Central NuGet package versions
global.json Repository SDK version

Contributing

Follow the Akka.NET contribution guide and Alpakka's code standards. Keep changes focused, preserve useful existing assertions and add regression evidence for behavior changes. New service integration tests should use Aspire.Hosting.Testing or Testcontainers with owned resources and observable delivery or state assertions.

Use central package management for dependency changes and run the relevant connector's tests. Public APIs, library targets, defaults and ownership contracts require compatibility review; broader implementation redesign should be proposed separately.

Documentation and support

For a bug report, include the connector and SDK versions, target framework, a small reproduction and the observed stream behavior. Remove connection strings, keys and other credentials from logs and examples.

License

Alpakka is licensed under Apache License 2.0.

About

Akka Streams Connectors - Alpakka

Topics

Resources

Code of conduct

Contributing

Stars

112 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages