Giter Site home page Giter Site logo

masstransit-templates's Introduction

MassTransit Templates

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, reliability, and scalability.

Mass Transit

Get started by reading through the documentation.

Templates

These templates can be used to create new projects, add consumers to existing projects, and create new sagas.

Worker Service

Project Template

dotnet new mtworker -n ProjectName

This template creates a new worker service project, using the in-memory transport. Once created, the item templates such as mtconsumer or mtstatemachine can be used to add messaging components. Use dotnet run in the project folder to run the project and view the logs. The service will automatically discover message consumers and configure the endpoints using the kebab-case endpoint name formatter.

RabbitMQ Docker Service

Project Template

dotnet new mtdocker -n ProjectName

This template creates a new worker service project, using RabbitMQ. Once created, the item templates such as mtconsumer or mtstatemachine can be used to add messaging components. Use docker-compose up in the project folder to build the containers and run the project. The service will automatically discover message consumers and configure the endpoints using the kebab-case endpoint name formatter. You can open the RabbitMQ management console by navigating to http://localhost:15672/.

Consumer

Item Template

dotnet new mtconsumer -n MessageName

This templates creates a message type (MessageName), a consumer (called MessageNameConsumer), and a consumer definition with an initial message retry filter configured.

State Machine Saga

Item Template

dotnet new mtstatemachine -n StateName

This templates creates a state machine saga (called StateNameStateMachine), the state (StateNameState), an initial event message type (StateNameEvent), and a saga definition with an initial message retry filter and in-memory out box configured.

Discord

Get help live at the MassTransit Discord server.

alt Join the conversation

Testing

Install the dev package

./scripts/install-dev

Uninstall the dev package, and reinstall the latest release

./scripts/uninstall-dev

CREDITS

Logo Design by The Agile Badger

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.