MediatR and MassTransit Going Commercial: What This Means For You

MediatR and MassTransit Going Commercial: What This Means For You

6 min read ·

Stack traces > “it just broke” — Sentry for .NET gets it. NullReferenceException: object not set to an instance of anything remotely helpful. Sentry captures the full error, request, and user context so you can stop debugging production like it's a murder mystery. 👉 Start fixing with Sentry — free trial, no guessing.

Sure, you can roll your own auth - if you hate free time. If you're done doing auth on your own, don't sacrifice your control. FusionAuth is downloadable, and can be developed and tested locally. A single-tenant architecture provides better scale and security than a purely multi-tenant SaaS model, even if you deploy via the cloud. Try it for free, and check out our transparent pricing!

Big changes are happening in the .NET ecosystem. Three powerhouse libraries - MediatR, AutoMapper, and MassTransit - are moving to commercial licenses. Not so long ago, Fluent Assertions also announced its plans to move to a commercial license.

As someone who's built countless systems with these tools over the past decade, I have thoughts. And some strong opinions.

The Libraries We Love (And Sometimes Hate)

If you're a .NET developer, you likely use at least one of these:

AutoMapper (794.7M downloads) transforms objects from one type to another. It removes mountains of tedious mapping code that nobody enjoys writing. One line replaces twenty. I personally despise AutoMapper and mapping libraries in general, but I can't deny their popularity.

MediatR (286.6M downloads) implements the mediator pattern. It decouples requests from the objects handling them, promoting separation of concerns. There's also the pipeline behavior feature, which allows you to add cross-cutting concerns. I'm a huge fan and use it regularly in my projects.

MassTransit (130.0M downloads) makes distributed messaging simple. It wraps message brokers like RabbitMQ and Azure Service Bus with an elegant API. Building event-driven systems becomes approachable. This is another tool I love and often recommend.

These libraries aren't just popular - they're transformative. They've shaped how we build .NET applications.

The Maintainer's Reality

Both announcements tell a similar story.

AutoMapper and MediatR Going Commercial.

Source: AutoMapper and MediatR Going Commercial

Jimmy Bogard (AutoMapper, MediatR) writes:

You can see exactly where my contributions cratered and flat-lined. And that's just commits—issues, PRs, discussions, all my time dried up.

His OSS work was previously sponsored by his former employer. When he went independent, that support vanished. His focus shifted to his consulting business.

Announcing MassTransit v9.

Source: Announcing MassTransit v9

Similarly, MassTransit has grown from "a single assembly that supported MSMQ" in 2007 to over thirty NuGet packages. Its success created demands that are impossible to meet through volunteer work alone:

  • Full-time development resources
  • Enterprise-grade support
  • Long-term sustainability

Both maintainers face the same dilemma: how do you support widely used libraries when nobody pays you to do it?

The Commercial Transition

Here's what's happening:

AutoMapper and MediatR: Jimmy hasn't shared specific timing or pricing yet. He states, "Short term, nothing will change."

MassTransit: Moving from v8 (open source) to v9 (commercial) with this timeline:

  • Q3 2025: v9 prerelease for early adopters
  • Q1 2026: v9 official release under commercial license
  • Through 2026: v8 security patches continue

MassTransit's pricing targets:

  • Small/medium businesses: $400/month or $4000/year
  • Large enterprises: $1200/month or $12000/year
  • Support for ISVs and consultants who build client applications

None of this is set in stone. The pricing aspect should be final by the time the commercial version is released.

Why I Respect This Decision

Both maintainers waited over a decade before making this move. They've contributed immense value to our community for free.

Their announcements show careful consideration. They're not abandoning users:

  • Existing versions remain open source
  • Security patches will continue
  • Commercial licenses support sustainable development

I honestly hope none of the above changes in the future. The work they do is valuable.

Writing these libraries from scratch would cost your team far more than their license fees.

Your Options Now (With My Take)

If your project uses these libraries, you have choices:

  1. Purchase the commercial license
    This supports continued development and gets you new features and official support.

  2. Stay on the current open source version
    MassTransit v8 and current MediatR/AutoMapper will remain available. Security patches will continue through 2026 for MassTransit. For MassTransit specifically, I'd consider staying on v8 for the long term if possible.

  3. Switch to alternatives
    For AutoMapper: consider Mapster or manual mapping (my recommendation).

    For MediatR: explore FastEndpoints or build a simple mediator yourself.

    For MassTransit: look at raw client libraries like RabbitMQ.Client and Azure.Messaging.ServiceBus, and another option to consider is Rebus.

  4. Write equivalent functionality yourself
    MediatR isn't too complex to build on your own. I recommend giving it a try as an excellent coding exercise - it's probably the simplest way to move away from MediatR.

    For AutoMapper, many teams have deep integrations with business logic in custom mappers. This makes extracting and replacing it difficult. Expect significant tech debt if you don't address this.

    MassTransit, on the other hand, does so many things (and does them well) that migrating away would be challenging. Saga support or the request-response messaging features are hard to replicate. The only real alternative is diving into raw client libraries for your chosen message transport.

Each option involves tradeoffs. The right choice depends on your project needs and budget.

A Shift to Fundamentals

These changes have made me reflect on something important: we should never lose sight of fundamentals.

We've been pampered and spoiled by these awesome libraries. It's easy to lose sight of the actual problems they're solving and how they work under the hood. People know how to use MediatR, but they don't understand the mechanisms behind it.

The same goes for MassTransit. It abstracts away so many complexities of working with message brokers that it's possible to use it without knowing how RabbitMQ or Azure Service Bus actually works.

Remember this: using a library that abstracts something away doesn't excuse you from understanding the patterns and tools you're using. The fundamentals are still there and always have been. This might be the perfect opportunity to deepen your knowledge of what's happening beneath these abstractions.

A Reality Check

Open source isn't free. Someone pays - either with time or money.

I'm honestly tired of seeing developers complain about these changes. Who are they to demand software for free? The entitlement is astounding. These maintainers have provided immense value for over a decade without asking for anything in return.

We've enjoyed years of exceptional tooling without directly funding it. Now we face a reckoning.

As businesses reap massive productivity gains from these libraries, it's reasonable to ask: shouldn't some of that value flow back to the creators?

I hope these projects thrive under their new models. They've earned support after years of thankless work.

Both my Pragmatic Clean Architecture and Modular Monolith Architecture courses currently use MediatR and MassTransit extensively. I plan to keep them on MediatR v12 and MassTransit v8 in the short term. However, I'll also be updating them to show migration paths away from these libraries.

What's your take? Will you stick with the open versions, pay for licenses, or explore alternatives?

Thanks for reading.

And stay awesome!


Whenever you're ready, there are 4 ways I can help you:

  1. (NEW) Pragmatic REST APIs: You will learn how to build production-ready REST APIs using the latest ASP.NET Core features and best practices. It includes a fully functional UI application that we'll integrate with the REST API.
  2. Pragmatic Clean Architecture: Join 4,000+ students in this comprehensive course that will teach you the system I use to ship production-ready applications using Clean Architecture. Learn how to apply the best practices of modern software architecture.
  3. Modular Monolith Architecture: Join 1,800+ engineers in this in-depth course that will transform the way you build modern systems. You will learn the best practices for applying the Modular Monolith architecture in a real-world scenario.
  4. Patreon Community: Join a community of 1,000+ engineers and software architects. You will also unlock access to the source code I use in my YouTube videos, early access to future videos, and exclusive discounts for my courses.

Become a Better .NET Software Engineer

Join 65,000+ engineers who are improving their skills every Saturday morning.