Skip to content
Distributed Application Framework for .NET supporting MSMQ and RabbitMQ
C# Other
Pull request Compare This branch is even with MassTransit:master.


MassTransit is a free, open-source distributed application framework for .NET. MassTransit makes it easy to create applications and services that leverage message-based, loosely-coupled asynchronous communication for higher availability, reliabililty, and scalability.

Mass Transit

MassTransit is Apache 2.0 licensed.

master develop

Getting started with MassTransit

In order to get started with MassTransit, you can have a look at the documentation, which is located at

Simplest possible thing:

install-package MassTransit.RabbitMq then;

var bus = Bus.Factory.CreateUsingRabbitMq(sbc =>
    var host = sbc.Host(new Uri("rabbitmq://localhost/"), h =>
        h.Username = "guest";
        h.Password = "guest";

    sbc.ReceiveEndpoint(host, "my_queue", endpoint =>
        endpoint.Handler<MyMessage>(async context =>
            await Console.Out.WriteLine($"Received: {context.Message.Value}");

    bus.Publish(new MyMessage{Value = "Hello, World."});


You will also need to set up RabbitMQ;

  1. Install Erlang using the installer. (Next -> Next ...)
  2. Install RabbitMQ using the installer. (Next -> Next ...) You now have a RabbitMQ broker (look in services.msc for it) that you can log into using guest, guest. You can see message rates, routings and active consumers using this interface.

Please note

You need to add the management interface before you can login. First, from an elevated command prompt, change directory to the sbin folder within the RabbitMQ Server installation directory e.g. %PROGRAMFILES%\RabbitMQ Server\rabbitmq_server_3.5.3\sbin\

Next, run the following command to enable the rabbitmq management plugin:

rabbitmq-plugins.bat enable rabbitmq_management 


Download from NuGet 'MassTransit' Search NuGet for MassTransit

Download the continuously integrated Binaries from TeamCity.

Supported transports

We support RabbitMQ and Azure Service Bus message brokers.

Mailing list

MassTransit Discuss

Building from Source

  1. Clone the source down to your machine. git clone git://
  2. Run build.bat


  1. git config --global core.autocrlf false
  2. Hack!
  3. Make a pull request.


MassTransit is built on AppVeyor


  • .Net 4.5


Logo Design by The Agile Badger

Something went wrong with that request. Please try again.