Skip to content
Researched developer tool comparisonsPrices dated · vendor sources linked · no star ratings
Search

Stage 01 · Write · Researched comparison

Best .NET Mediator Libraries in 2026

MediatR is the first pick for most teams that want in-process request and notification dispatch with a familiar handler pattern. It suits codebases that already use CQRS-style handlers and want a small API. For teams that need messaging beyond a single process, Wolverine and MassTransit add transports, outbox support and long-running workflows. If you want a source-generated, allocation-light alternative to MediatR, martinothamar/Mediator is the closest drop-in option.

By
Published 27 Nov 2026 · 7 tools compared

We run no ads and no affiliate links at launch. The order of a list follows our published method. See how we score.

Prices are the starting prices vendors list publicly. Plans change, so confirm the current price on the vendor page before you buy.

Key takeaways

  • MediatR moved to a commercial licence in 2025, with a free community tier and paid tiers for larger organisations.
  • Wolverine and MassTransit cover both in-process mediation and distributed messaging over transports such as RabbitMQ and Azure Service Bus.
  • martinothamar/Mediator is open source and uses source generation, so it avoids runtime reflection and registration scanning.
  • MassTransit v8 is open source, while v9 moved to a commercial model; confirm the current terms on the vendor site before you commit.

Who each pick is for

  • In-process request and notification dispatch with a simple handler patternMediatR
  • Teams that want mediator-style handlers plus real messaging and outbox supportWolverine
  • Distributed messaging with consumers, sagas and multiple transportsMassTransit
  • Source-generated mediator with low overhead and MediatR-like syntaxMediator (martinothamar)
  • Command processor and messaging with a focus on task queues and outboxBrighter
  • Simple service bus and message dispatch with minimal ceremonyRebus
  • Large systems that need a supported, opinionated messaging platformNServiceBus

Comparison

The 7 tools at a glance
ToolBest forStandout featureListed starting priceFree plan or trial
1MediatRIn-process request and notification dispatch with a simple handler patternSmall API for requests, notifications and pipeline behavioursSee vendor pricing pageFree plan
2WolverineTeams that want mediator-style handlers plus real messaging and outbox supportCombines in-process handling with transports, sagas and a transactional outboxFree (open source)Free plan
3MassTransitDistributed messaging with consumers, sagas and multiple transportsBroad transport support and mature saga and state machine supportSee vendor pricing pageNo free plan
4Mediator (martinothamar)Source-generated mediator with low overhead and MediatR-like syntaxSource generation avoids runtime reflection and scanningFree (open source)Free plan
5BrighterCommand processor and messaging with a focus on task queues and outboxCommand processor pattern with outbox and inbox supportFree (open source)Free plan
6RebusSimple service bus and message dispatch with minimal ceremonyStraightforward configuration and a small APIFree (open source)Free plan
7NServiceBusLarge systems that need a supported, opinionated messaging platformMature messaging platform with strong tooling and supportSee vendor pricing pageNo free plan

How we picked

We compared these libraries on fit for in-process and distributed mediation, supported .NET versions, licence terms and pricing model, transport support, and the main limits such as reflection overhead or commercial restrictions. Sources are vendor pages, official documentation and project repositories. Licence terms changed for MediatR and MassTransit in recent years, and prices change, so confirm the current terms on the vendor site before you commit.

The tools, one by one

01

MediatR

Best for in-process request and notification dispatch with a simple handler pattern

Visit github.com
MediatR homepage
MediatR homepage, captured Nov 2026

What it is and where it fits

MediatR is the reference mediator for .NET. You define a request, a handler and optionally pipeline behaviours for cross-cutting concerns such as logging or validation. It runs on any .NET target that supports the package, including ASP.NET Core, console apps and worker services. Dispatch is in-process only; it does not move messages between machines.

The licence changed in 2025. The project moved under LuckyPennySoftware and introduced a commercial model with a free community tier and paid tiers based on organisation size and revenue. Check the repository for the current thresholds, because the terms apply per organisation, not per developer. Teams that cannot accept the licence terms should look at the open-source alternatives below.

Standout: Small API for requests, notifications and pipeline behaviours

Pricing pointer

See vendor pricing page, as listed by the vendor (MediatR website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Small API for requests, notifications and pipeline behaviours
  • widely documented and easy to onboard

Drawbacks

  • Commercial licence from 2025 for larger organisations
  • reflection-based dispatch adds some overhead

Skip it if this limit matters to you: commercial licence from 2025 for larger organisations.

Verdict. A sensible pick for in-process request and notification dispatch with a simple handler pattern.

Alternatives in this guide: Wolverine, MassTransit, Mediator (martinothamar)

02

Wolverine

Best for teams that want mediator-style handlers plus real messaging and outbox support

Visit wolverinefx.net
Wolverine homepage
Wolverine homepage, captured Nov 2026

What it is and where it fits

Wolverine is a messaging and mediator library from JasperFx. It handles the same request and handler pattern as MediatR but adds transports such as RabbitMQ, Azure Service Bus and Kafka, plus scheduled messages, sagas and an outbox. It runs on modern .NET and integrates with ASP.NET Core and worker services.

The library is open source under the MIT licence, and commercial support and tooling are sold separately by JasperFx. The main cost is conceptual: Wolverine prefers its own conventions for handler discovery and message routing, so a team that only needs in-process dispatch may find it heavier than necessary. It suits projects that expect to add asynchronous messaging later.

Standout: Combines in-process handling with transports, sagas and a transactional outbox

Pricing pointer

Free (open source), as listed by the vendor (Wolverine website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Combines in-process handling with transports, sagas and a transactional outbox
  • handler discovery is convention-based

Drawbacks

  • Larger learning curve than a pure mediator
  • opinionated conventions can be hard to unwind

Skip it if this limit matters to you: larger learning curve than a pure mediator.

Verdict. A sensible pick for teams that want mediator-style handlers plus real messaging and outbox support.

Alternatives in this guide: MediatR, MassTransit, Mediator (martinothamar)

03

MassTransit

Best for distributed messaging with consumers, sagas and multiple transports

Visit masstransit.io
MMassTransitmasstransit.io
Homepage screenshot not available; visit the vendor site.

What it is and where it fits

MassTransit is a distributed application framework for .NET built around message consumers. It supports RabbitMQ, Azure Service Bus, Amazon SQS, Kafka and others, and includes saga state machines, retry policies and an outbox. It is not a pure in-process mediator, but it covers the same handler-style programming model once messages are involved.

Licensing is the key detail. MassTransit v8 is open source. Version 9 moved to a commercial model, so confirm the current terms and pricing on the vendor site before adopting it. Teams that only need in-process request dispatch should skip it; teams building event-driven services across several processes are its main audience.

Standout: Broad transport support and mature saga and state machine support

Pricing pointer

See vendor pricing page, as listed by the vendor (MassTransit website). Confirm the current plan price before you buy.

No free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Broad transport support and mature saga and state machine support
  • strong documentation

Drawbacks

  • v9 uses a commercial licence
  • v8 remains open source but is the older line

Skip it if this limit matters to you: v9 uses a commercial licence.

Verdict. A sensible pick for distributed messaging with consumers, sagas and multiple transports.

Alternatives in this guide: MediatR, Wolverine, Mediator (martinothamar)

04

Mediator (martinothamar)

Best for source-generated mediator with low overhead and MediatR-like syntax

Visit github.com
Mediator (martinothamar) homepage
Mediator (martinothamar) homepage, captured Nov 2026

What it is and where it fits

This project, usually referenced as martinothamar/Mediator, is an open-source mediator that uses C# source generators. Handlers and dispatch code are generated at compile time, which removes runtime registration scanning and reduces allocations. The API mirrors MediatR closely, with requests, notifications and pipeline behaviours, so porting an existing codebase is mostly mechanical.

It targets modern .NET versions that support source generators. Because it is community-maintained, the documentation and issue traffic are smaller than MediatR's. That matters if you need quick answers or long-term commercial support. It is a good fit for teams that want MediatR-style code without the newer licence terms and are comfortable reading generated code when something goes wrong.

Standout: Source generation avoids runtime reflection and scanning

Pricing pointer

Free (open source), as listed by the vendor (Mediator (martinothamar) website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Source generation avoids runtime reflection and scanning
  • API is close enough to MediatR to ease migration

Drawbacks

  • Smaller community than MediatR
  • source-generator behaviour can surprise during debugging

Skip it if this limit matters to you: smaller community than MediatR.

Verdict. A sensible pick for source-generated mediator with low overhead and MediatR-like syntax.

Alternatives in this guide: MediatR, Wolverine, MassTransit

05

Brighter

Best for command processor and messaging with a focus on task queues and outbox

Visit github.com
Brighter homepage
Brighter homepage, captured Nov 2026

What it is and where it fits

Brighter is a command processor and messaging library for .NET. It dispatches commands and events to handlers in process and can also publish them over transports such as RabbitMQ and Kafka. It includes outbox and inbox patterns for reliable messaging and supports policy-based retries.

The core library is open source. It suits teams that want explicit command and event separation with reliability features built in, rather than a bare request-response mediator. The trade-off is setup: you configure a dispatcher, policies and subscriptions, which is more work than registering a few handlers. Small apps with simple dispatch needs will find it oversized.

Standout: Command processor pattern with outbox and inbox support

Pricing pointer

Free (open source), as listed by the vendor (Brighter website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Command processor pattern with outbox and inbox support
  • works with several transports

Drawbacks

  • More configuration than a minimal mediator
  • documentation assumes familiarity with the command processor model

Skip it if this limit matters to you: more configuration than a minimal mediator.

Verdict. A sensible pick for command processor and messaging with a focus on task queues and outbox.

Alternatives in this guide: MediatR, Wolverine, MassTransit

06

Rebus

Best for simple service bus and message dispatch with minimal ceremony

Visit github.com
Rebus homepage
Rebus homepage, captured Nov 2026

What it is and where it fits

Rebus is a .NET service bus that handles message dispatch between handlers. It supports transports including RabbitMQ, Azure Service Bus, Amazon SQS and SQL-based queues, and includes sagas, retries and a unit-of-work model. It can also be used for in-process dispatch, though its main role is moving messages between services.

The library is open source. It is a good middle ground for teams that find MassTransit or NServiceBus heavier than needed but still want real messaging rather than a pure in-process mediator. Feature depth is lower, so check that the transport and saga features you need are supported before committing.

Standout: Straightforward configuration and a small API

Pricing pointer

Free (open source), as listed by the vendor (Rebus website). Confirm the current plan price before you buy.

Free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Straightforward configuration and a small API
  • supports several transports and sagas

Drawbacks

  • Less feature depth than MassTransit or NServiceBus
  • smaller ecosystem of extensions

Skip it if this limit matters to you: less feature depth than MassTransit or NServiceBus.

Verdict. A sensible pick for simple service bus and message dispatch with minimal ceremony.

Alternatives in this guide: MediatR, Wolverine, MassTransit

07

NServiceBus

Best for large systems that need a supported, opinionated messaging platform

Visit particular.net
NServiceBus homepage
NServiceBus homepage, captured Nov 2026

What it is and where it fits

NServiceBus from Particular is a commercial messaging framework for .NET. It provides message handlers, sagas, an outbox, retries and a publish-subscribe model over transports such as RabbitMQ, Azure Service Bus and SQL Server. It is designed for systems where reliability and support matter more than minimal setup.

It is not a lightweight mediator. Adopting it means accepting Particular's opinions on endpoints, message design and deployment, plus a paid licence for production. Pricing is not published as a simple number, so check the vendor page. It suits organisations that want a supported platform and are willing to invest in training; it is overkill for a single app that just needs request dispatch.

Standout: Mature messaging platform with strong tooling and support

Pricing pointer

See vendor pricing page, as listed by the vendor (NServiceBus website). Confirm the current plan price before you buy.

No free plan. Plans change, so confirm on the vendor's pricing page before you buy.

Benefits

  • Mature messaging platform with strong tooling and support
  • opinionated design guides architecture

Drawbacks

  • Commercial licence with no free tier for production use
  • more infrastructure and concepts to learn

Skip it if this limit matters to you: commercial licence with no free tier for production use.

Verdict. A sensible pick for large systems that need a supported, opinionated messaging platform.

Alternatives in this guide: MediatR, Wolverine, MassTransit

Who should use what

A team adding CQRS-style handlers to a single ASP.NET Core app should start with MediatR or the source-generated Mediator. A team that expects to add queues and an outbox soon should evaluate Wolverine or MassTransit early, before handlers spread across the codebase. A team that needs a supported platform with vendor backing should look at NServiceBus. A small service that needs basic message dispatch without heavy configuration fits Rebus, while Brighter suits teams that want explicit command processing with outbox and inbox patterns.

Questions to settle before you buy

What to check before you buy

  • Confirm the current licence terms, since MediatR and MassTransit changed models recently.
  • Check that the library targets the .NET version you deploy on.
  • Decide whether you need in-process dispatch only or real transports and an outbox.
  • Review how handlers are registered and whether reflection or source generation is used.
  • Check transport support for your broker before adopting a messaging framework.

FAQ

Is MediatR still free?

MediatR introduced a commercial licence in 2025 with a free community tier and paid tiers for larger organisations. The free tier covers many small teams, but the thresholds are based on organisation size and revenue. Read the current terms in the repository before adopting it.

What is the difference between a mediator and a message bus?

A mediator dispatches a request to a handler inside the same process. A message bus sends messages between processes or machines over a transport such as RabbitMQ. Libraries like Wolverine and MassTransit do both, while MediatR and martinothamar/Mediator focus on in-process dispatch.

Which library is closest to MediatR but open source?

martinothamar/Mediator mirrors the MediatR API and uses source generation instead of reflection. It is open source and works as a near drop-in replacement for many codebases. Test the migration on a branch, because generated code and pipeline behaviour details can differ.

Do I need a mediator library at all?

No. You can inject services directly and call them. A mediator helps when you want a uniform handler pattern, pipeline behaviours for cross-cutting concerns, or a clear separation between requests and handlers. For small apps, direct injection is simpler and easier to trace.

Can these libraries run offline or without a broker?

The in-process mediators, MediatR and martinothamar/Mediator, need no broker. Messaging frameworks such as Wolverine, MassTransit, Rebus and NServiceBus can run with in-memory transports for tests and local development, but production use usually needs a real broker.

Sources we checked

Method: how we score · editorial policy.

  1. MediatR (official site)
  2. Wolverine (official site)
  3. MassTransit (official site)
  4. Mediator (martinothamar) (official site)
  5. Brighter (official site)
  6. Rebus (official site)
  7. NServiceBus (official site)

Change log. First published 27 Nov 2026.