.NET framework for message-based distributed applications over RabbitMQ, Azure Service Bus, Amazon SQS and more
open coreApache-2.0free
MassTransit is a .NET framework for building distributed applications that talk through messages. It gives consumers and endpoints wired through dependency injection, automatic broker topology, retry and redelivery, a transactional outbox, saga state machines, routing slips, job consumers and an asynchronous request client, with the same code running on RabbitMQ, Azure Service Bus, Amazon SQS/SNS, a SQL transport, Kafka and others. Version 8 and earlier are open source under Apache-2.0; from version 9 it's a commercial product from Massient, Inc. that needs a licence key.
Problems it solves
- build message-driven microservices in .NET without writing my own messaging layer
- orchestrate long-running workflows across .NET services
- switch my .NET app from RabbitMQ to Azure Service Bus without rewriting it
Features
- consumers and endpoints configured through dependency injection
- automatic broker topology from message contracts
- retry, redelivery and fault handling
- in-memory and transactional outbox
- saga state machines and routing slips
- one programming model across RabbitMQ, Azure Service Bus, Amazon SQS/SNS, SQL and Kafka
Limitations
- Version 9 and later need a paid licence key; version 8 stays open source but its support ends on 31 December 2026.1
Ways to run it
MassTransit v8
Not included
- support from Massient
- versions 9 and later
MassTransit v9
Only in this edition
- a licence key covering development, CI/CD, test, staging and production
- no limits on developers, services, endpoints, deployments or messages
- perpetual rights to versions released during the subscription
- email support
Alternatives
The same job
These do what MassTransit does.
- NServiceBus .NET framework for asynchronous messaging, sagas and distributed systems
- CAP .NET library for distributed transactions and an event bus with the outbox pattern
