Zymergi.Messaging 11.4.0-alpha

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

Zymergi.Messaging

Provider-neutral queue contract IQueue<T>. The interface is obsolete and will be removed in 12.0. Its methods are synchronous. New code should use the async IAwsQueueService in Zymergi.Messaging.Aws or its own async abstraction.

Targets .NET 10. Depends on Zymergi.Core.

Install

dotnet add package Zymergi.Messaging

Usually you get this package through Zymergi.Messaging.Aws and do not reference it directly.

Register in Program.cs

Nothing to register. This package ships no implementation of IQueue<T>. Register a broker client from an implementation package, for example:

builder.Services.AddSingleton<IAwsQueueService>(sp => new AwsQueueService(queueUrl, sp.GetRequiredService<IAmazonSQS>()));

Use it

Define an async contract in your app and adapt the broker behind it:

public interface IJobQueue
{
    Task SendAsync(string body, CancellationToken ct);
}

public sealed class SqsJobQueue(IAwsQueueService sqs) : IJobQueue
{
    public Task SendAsync(string body, CancellationToken ct) => sqs.EnqueueAsync(body, cancellationToken: ct);
}

Best practices

  • Async all the way with a CancellationToken. Do not call IQueue<T> from a request path: its sync calls block a thread-pool thread.
  • Make consumers idempotent and delete a message only after the work succeeds.
  • Run consumers in a BackgroundService, not in a request.
  • Register broker clients as singletons.

Testing

Depend on your own async interface and fake it in unit tests. Use LocalStack in Testcontainers for broker integration tests.

Gotchas

  • IQueue<T> (Enqueue, Dequeue, Peek, Purge) is obsolete and will be removed in 12.0. There is no async replacement in this package.

Version notes

11.4.0-alpha: no API change. The README no longer shows IQueue<T> as the way to send messages.

Source: bitbucket.org/zymergy/zymergi.saas

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 (1)

Showing the top 1 NuGet packages that depend on Zymergi.Messaging:

Package Downloads
Zymergi.Messaging.Aws

AWS SQS/SNS messaging implementation for Zymergi.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.4.0-alpha 61 11/16/2026
11.3.0-alpha 76 11/12/2026
11.2.0-alpha 71 11/2/2026
11.1.1-alpha 79 10/4/2026
11.1.0-alpha 125 10/1/2026
11.0.6-alpha 93 7/10/2026
11.0.5-alpha 85 7/9/2026
11.0.4-alpha 94 7/6/2026
11.0.3-alpha 85 7/6/2026
11.0.2-alpha 84 6/30/2026
11.0.1-alpha 87 6/30/2026
11.0.0-alpha 104 6/29/2026