AsyncMonolith 11.0.0

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

AsyncMonolith

Background messaging and scheduling for .NET monoliths, using the database you already have through Entity Framework Core.

  • Transactional outbox: messages are written in the same SaveChanges as your data, so they are never lost or sent for changes that rolled back.
  • Consumers run in the background with timeouts, retries with exponential backoff, and poisoned message handling.
  • Schedules: recurring messages from cron expressions in any time zone.
  • Safe with several app instances, with metrics on the async_monolith meter.

Databases

One package works with any EF Core provider and picks its queries from the one you use:

Provider Row locking
PostgreSQL (Npgsql.EntityFrameworkCore.PostgreSQL) FOR UPDATE SKIP LOCKED
SQL Server (Microsoft.EntityFrameworkCore.SqlServer) UPDLOCK, READPAST
MySQL / MariaDB (MySql.EntityFrameworkCore or Pomelo) FOR UPDATE SKIP LOCKED
Anything else, such as SQLite None: fine for a single instance

AsyncMonolith.TestHelpers adds fakes and helpers for testing consumers with xunit v3.

Quick start

builder.Services.AddAsyncMonolith<AppDbContext>(o => o.RegisterTypesFromAssemblyContaining<Program>());

// In AppDbContext.OnModelCreating
modelBuilder.ConfigureAsyncMonolith();

public record OrderPlaced(int OrderId) : IConsumerPayload;

public class SendReceipt : IConsumer<OrderPlaced>
{
    public Task Consume(OrderPlaced payload, ConsumeContext context, CancellationToken cancellationToken) => ...;
}

await producer.Produce(new OrderPlaced(order.Id));
await dbContext.SaveChangesAsync();

Documentation: https://timmoth.github.io/AsyncMonolith/

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

Showing the top 5 NuGet packages that depend on AsyncMonolith:

Package Downloads
AsyncMonolith.PostgreSql

PostgreSql interface for AsyncMonolith

AsyncMonolith.MsSql

MsSql interface for AsyncMonolith

AsyncMonolith.Ef

Entity Framework interface for AsyncMonolith

AsyncMonolith.TestHelpers

Fakes and helpers for testing AsyncMonolith consumers with xunit v3.

AsyncMonolith.MySql

MySql interface for AsyncMonolith

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0 54 11/20/2026
10.0.0 5,117 12/19/2025
9.0.2 237 7/28/2025
9.0.1 205 7/28/2025
9.0.0 221 7/28/2025
8.0.7 285 5/5/2025
8.0.1 4,810 6/18/2024 8.0.1 is deprecated.
8.0.0 384 6/14/2024 8.0.0 is deprecated.
1.0.9.1 296 6/10/2024 1.0.9.1 is deprecated.
1.0.9 331 6/6/2024 1.0.9 is deprecated.
1.0.8 272 6/6/2024 1.0.8 is deprecated.
1.0.7 276 6/5/2024 1.0.7 is deprecated.
1.0.6 274 6/5/2024 1.0.6 is deprecated.
1.0.5 278 6/5/2024 1.0.5 is deprecated.
1.0.4 282 6/4/2024 1.0.4 is deprecated.
1.0.3 270 6/4/2024 1.0.3 is deprecated.
1.0.2 280 6/4/2024 1.0.2 is deprecated.
1.0.1 273 6/3/2024 1.0.1 is deprecated.
1.0.0 275 6/3/2024 1.0.0 is deprecated.