AsyncMonolith 11.0.0
dotnet add package AsyncMonolith --version 11.0.0
NuGet\Install-Package AsyncMonolith -Version 11.0.0
<PackageReference Include="AsyncMonolith" Version="11.0.0" />
<PackageVersion Include="AsyncMonolith" Version="11.0.0" />
<PackageReference Include="AsyncMonolith" />
paket add AsyncMonolith --version 11.0.0
#r "nuget: AsyncMonolith, 11.0.0"
#:package AsyncMonolith@11.0.0
#addin nuget:?package=AsyncMonolith&version=11.0.0
#tool nuget:?package=AsyncMonolith&version=11.0.0
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
SaveChangesas 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_monolithmeter.
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 | 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
- Cronos (>= 0.13.0)
- Microsoft.EntityFrameworkCore (>= 10.0.15)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.15)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.15)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.15)
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.0 | 384 | 6/14/2024 | |
| 1.0.9.1 | 296 | 6/10/2024 | |
| 1.0.9 | 331 | 6/6/2024 | |
| 1.0.8 | 272 | 6/6/2024 | |
| 1.0.7 | 276 | 6/5/2024 | |
| 1.0.6 | 274 | 6/5/2024 | |
| 1.0.5 | 278 | 6/5/2024 | |
| 1.0.4 | 282 | 6/4/2024 | |
| 1.0.3 | 270 | 6/4/2024 | |
| 1.0.2 | 280 | 6/4/2024 | |
| 1.0.1 | 273 | 6/3/2024 | |
| 1.0.0 | 275 | 6/3/2024 |