Background jobs for .NET, in the database you already run.
Warp runs jobs, pub/sub messages and in-process requests on PostgreSQL or SQL Server through your own EF Core DbContext. A job is saved in the same transaction as the data it belongs to, and there is no broker to operate.
.NET 10 and 11. PostgreSQL 17 and 18, SQL Server 2022 and 2025. MIT licensed.
public async Task PlaceOrder(Order order, CancellationToken ct)
{
db.Orders.Add(order);
// Saved in the same transaction as the order.
await publisher.Enqueue(
new SendConfirmationEmail { OrderId = order.Id });
await db.SaveChangesAsync(ct);
}
public class SendConfirmationEmailHandler(IEmailSender email)
: IJobHandler<SendConfirmationEmail>
{
public Task HandleAsync(
SendConfirmationEmail job, CancellationToken ct) =>
email.SendConfirmation(job.OrderId, ct);
}


Jobs commit with your data
Warp writes through your DbContext, so an order and the email job it needs are saved together or not at all. No outbox table to build, no dual write to reconcile.
How the outbox worksLight on the database
Jobs are claimed in batches and completed in batches. An empty job costs as few as 0.22 database statements, so the queue leaves the server to the rest of your application.
PerformanceNothing to register
A source generator finds your handlers at build time and dispatches to them without reflection. Write the handler class and it runs.
Getting startedA dashboard that explains what happened
Served at /warp from your own application, behind your own authorization. These are captures of the dashboard running its demo data.
Every attempt, with the reason it failed
A job page shows the payload, the metadata, and each state the job passed through with its duration and exception. Requeue or delete it from the same page.
Jobs in the dashboard

Handler logs while the job is still running
What the handler writes to ILogger appears on the job page about a second later, next to the progress it reports. You do not need to wait for the job to finish, or go to another tool, to see what it is doing.


One trace from the request to the last job
Follow a checkout from the browser, through the endpoint, into the job it enqueued, the outbound call that job made and the jobs that followed. The job graph shows batches, messages and continuations.
Tracing across jobs

Four thousand failures, one issue
Errors from jobs, endpoints, outbound calls and the browser are grouped by fingerprint. Mark an issue resolved and Warp flags it as regressed if it comes back.
Error grouping

The queue shares your database. It should not crowd it.
The same 20,000 jobs on the same PostgreSQL server, one server with 10 workers, Warp 8.0 (with prefetch) against Hangfire 1.8. With the default of no prefetch an empty job costs about 0.46 statements.
| Measurement | Warp | Hangfire |
|---|---|---|
| Database statements per empty job | 0.22 | 40.03 |
| Database time per empty job | 0.061 ms | 3.444 ms |
| Memory allocated per empty job | 15.2 KB | 75.0 KB |
Shorter is better. Each value is the median of 3 runs. Warp is shown in dispatcher mode, the default since 8.0, and the table compares that mode with Hangfire. Every measured row, the method and the caveats.
Four kinds of work, one handler model
Durable work and in-process calls share one pipeline, so a behavior you write once, such as logging or validation, wraps all four.
- Jobs
IJob - One handler. Stored, retried, scheduled, grouped into batches.
- Messages
IMessage - Any number of handlers. Each one runs as its own job.
- Requests
IRequest<T> - In-process, typed response. Nothing is stored.
- Streams
IStreamRequest<T> - In-process IAsyncEnumerable. Nothing is stored.
// Job: one handler, stored, retried
await publisher.Enqueue(new GenerateReport { Month = 3 });
await publisher.Schedule(new GenerateReport { Month = 4 }, tomorrow);
// Message: every handler runs as its own job
await publisher.Publish(new OrderCreated { OrderId = order.Id });
// Request: in-process, typed response, no database
var user = await mediator.Send(new GetUser { UserId = 1 });
// Stream: in-process IAsyncEnumerable
await foreach (var item in mediator.CreateStream(new GetUsers { Role = "Admin" })) { }
What is in the box
Most of these are one builder call or one attribute. Each links to its page.
Jobs and workflows
Throughput and recovery
HTTP and integrations
Run your first job
Four packages and the database you have. Warp adds its tables to your model, so your normal migrations create them.
Add the packages
dotnet add package Moberg.Warp.Coredotnet add package Moberg.Warp.Workerdotnet add package Moberg.Warp.Provider.PostgreSql # or .SqlServerdotnet add package Moberg.Warp.DashboardRegister Warp on your DbContext
Program.csbuilder.Services.AddDbContext<AppDbContext>(o => o.UseNpgsql(connectionString));builder.Services.AddWarpServer<AppDbContext>(opt =>{opt.UsePostgreSql(); // or opt.UseSqlServer()opt.AddRetry(r => r.MaxRetries = 3);});var app = builder.Build();app.MapWarpDashboard("/warp");app.Run();Create the tables
dotnet ef migrations add AddWarpdotnet ef database update