Giter VIP home page Giter VIP logo

masstransit's Introduction

MassTransit

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 http://docs.masstransit-project.com/.

Simplest possible thing:

install-package MassTransit.RabbitMq then;

// Message Definition
class MyMessage
{
    public string Value { get; set; }
}

// Code Snippet for Console Application 
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.WriteLineAsync($"Received: {context.Message.Value}");
        });
    });
});

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

    Console.ReadLine();
}

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 

Downloads

Download from NuGet 'MassTransit' Search NuGet for MassTransit

Download the continuously integrated Nuget packages from AppVeyor.

Supported transports

We support RabbitMQ and Azure Service Bus message brokers.

Mailing list

MassTransit Discuss

Gitter Chat

While attendence is pretty light, there is a Gitter chat room available:

Join the chat at https://gitter.im/MassTransit/MassTransit

Building from Source

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

Contributing

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

Builds

MassTransit is built on AppVeyor

REQUIREMENTS

  • .Net 4.5.2

CREDITS

Logo Design by The Agile Badger

masstransit's People

Contributors

a-h avatar akilhoffer avatar alexeyzimarev avatar alexmg avatar blundell89 avatar bytenik avatar dahlbyk avatar drusellers avatar ferventcoder avatar gschuermans avatar haf avatar jacobpovar avatar jeandev avatar lowds avatar lysaghtn avatar maldworth avatar nikgovorov avatar ols avatar pattonjp avatar petedavis avatar phatboyg avatar robvdlv avatar staxmanade avatar thatrubenaguilar avatar thejuan avatar timbarcz avatar travisthetechie avatar vermeeca avatar wuhqureshi avatar ynojima avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.