Skip to content

Wolverine

Open source · Critter Stack

Wolverine

Command bus, message bus, and HTTP endpoints

A next-generation mediator, message bus, and HTTP framework for .NET with the least ceremony of any of them.

Wolverine handles in-process commands, distributed messages, and HTTP requests with plain methods instead of base classes and interfaces. Its runtime generates the code around each handler at build time, so the resulting pipeline is short, readable, and fast, and your business logic stays a pure function that is trivial to test.

Durable messaging is built in rather than bolted on: a transactional inbox and outbox, retries, circuit breakers, dead letters, sagas, and scheduled and recurring messages all work the same way across every transport and database Wolverine supports.

What Wolverine Gives You

Handlers as plain methods

No base classes, no interfaces, no boilerplate. Compile-time code generation and Native AOT support keep the pipeline lean.

Durable messaging

Transactional inbox and outbox, exponential retries, circuit breakers, and dead letter queues, with the same semantics on every transport.

Every major transport

RabbitMQ, Azure Service Bus, AWS SQS and SNS, Kafka, NATS, Pulsar, MQTT, gRPC, Redis, SignalR, and local queues in one application.

HTTP endpoints

Wolverine.HTTP turns the same handler model into ASP.NET Core endpoints built for vertical slice architecture.

Sagas and scheduling

Stateful sagas, scheduled messages, and cron-based recurring jobs that are ordinary messages with ordinary handlers.

Persistence and observability

First-class Marten, Polecat, Fisher, and EF Core integration, OpenTelemetry tracing and metrics, and CritterWatch for operations.

Start Here

New to Wolverine? These 5 posts are the ones to read first, in order.

  1. 1Like Vertical Slice Architecture? Meet Wolverine.HTTP!Wolverine.HTTP is a first-class HTTP framework for ASP.NET Core built for vertical slice architecture — low ceremony, no Mediator library, built-in transactional outbox, and middleware more powerful than IEndpointFilter.
  2. 2Wolverine is the Undisputed Champion of Low Ceremony CodeNServiceBus and MassTransit have both shipped welcome improvements to their message handler ergonomics. Let's give credit where it's due, then walk through why Wolverine's approach to low ceremony code — no mandatory anything, inlined dependencies, pure function handlers, cascading messages, and readable generated code — is still in a class of its own.
  3. 3EF Core is Better with WolverineWolverine has a strong development and production-time story for EF Core developers — transactional middleware, automatic outbox/inbox, runtime database migrations, test data resets, and declarative persistence.
  4. 4Wolverine Best Practices, RevisitedThe Wolverine Best Practices guide was written in 2023 and pointed at a handful of blog posts from that year. We've rewritten it from scratch: the A-Frame Architecture front and center, concrete advice on dividing handlers and error handling by category, the at-least-once rules every messaging community agrees on, and links to the tutorials that didn't exist back then.
  5. 5Wolverine's End to End Multi-TenancyWolverine treats the tenant id as message metadata, and that one decision carries the tenant from HTTP detection, into the right Marten, Polecat, or EF Core session, onto every cascaded message, and into the only transactional inbox and outbox in .NET that lives in each tenant's own database. Here's how the whole chain works, and why it took years to get right.

Latest on Wolverine

65 posts from the JasperFx blog cover Wolverine. Here are the most recent.

Managed Projection Distribution with the Critter StackManaged Projection Distribution with the Critter StackAsynchronous projections are stateful, so each one has to run on exactly one node, keep running when that node dies, and not pile up on one unlucky pod. Here is how Wolverine distributes Marten and Polecat projection work across a cluster, fairly by default and with database affinity for multi-tenanted systems, and what CritterWatch adds on top: visualization, operator controls, a lot more health monitoring, MCP tools, and LLM alert triage.Tenants Taking TurnsA JasperFx client running thousands of tenants across hundreds of PostgreSQL databases was losing pods to out of memory kills during projection rebuilds. Here is how we worked through it together: partition the projection work by tenant, make the tenants take turns, and put a limit on the work in flight so one node can never load more than it can hold. Plus the other levers Marten gives you for very large systems, and how JasperFx works with clients on this kind of problem.Clone n' Go with Stateful Resources and WeaselEvery Critter Stack tool that touches a database knows exactly what that database should look like, and can make it so. This is the basics of how that works: the AutoCreate modes, the Weasel migration engine underneath Marten, Polecat, Fisher and Wolverine, the stateful resource model that puts databases and message brokers behind one interface, and the four ways to get a schema into place from a laptop to a DBA-owned production database.Our Plan for the Critter Stack on .NET 11Our Plan for the Critter Stack on .NET 11JasperFx 3, Weasel 10, Marten 10, Polecat 6, Fisher 2, Wolverine 7 and CritterWatch 2 are all coming together on .NET 10 and .NET 11, and the headline is not the framework bump. It is the pile of opt-in defaults from the Wolverine 6.x and Marten 9.x lines that finally get to become the defaults, each with a single one-line opt-out. Here is what flips, why, what else is in the train, and how we are running the whole thing as one Stoat plan to dogfood Stoat before its 1.0.Improving Wolverine through Chaos TestingWolverine's durable inbox and outbox promise that a message is handled once even when processes die, databases go away and the network lies to you. Over the last couple of months we have been trying very hard to break that promise, with an out-of-process chaos rig that kills, pauses and starves real Wolverine nodes. Here is how the testing works, the message loss and duplication bugs it found, and what we did about every one of them.Recurring Jobs with Wolverine and CritterWatchRecurring Jobs with Wolverine and CritterWatchEvery system has work that runs on a schedule. Wolverine turns a cron job into an ordinary message, so it gets the outbox, retries, dead letters, OpenTelemetry tracing and once-per-cluster execution for free, and CritterWatch 1.2 lets you see, pause, resume and trigger every schedule across your fleet. Plus how Wolverine treats a nightly job differently from one that fires every few seconds, and why.

Get help with Wolverine

JasperFx builds and maintains Wolverine. A support plan gives your team direct access to us; consulting and workshops get a project moving.

The Rest of the Stack