Zymergi.Messaging
11.4.0-alpha
dotnet add package Zymergi.Messaging --version 11.4.0-alpha
NuGet\Install-Package Zymergi.Messaging -Version 11.4.0-alpha
<PackageReference Include="Zymergi.Messaging" Version="11.4.0-alpha" />
<PackageVersion Include="Zymergi.Messaging" Version="11.4.0-alpha" />
<PackageReference Include="Zymergi.Messaging" />
paket add Zymergi.Messaging --version 11.4.0-alpha
#r "nuget: Zymergi.Messaging, 11.4.0-alpha"
#:package Zymergi.Messaging@11.4.0-alpha
#addin nuget:?package=Zymergi.Messaging&version=11.4.0-alpha&prerelease
#tool nuget:?package=Zymergi.Messaging&version=11.4.0-alpha&prerelease
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 callIQueue<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.
| Product | Versions 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. |
-
net10.0
- Zymergi.Core (>= 11.4.0-alpha)
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 |