bragisig / RetailDemoMassTransit

An implementation of NParticular Step-by-Step tutorial using MassTransit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RetailDemoMassTransit

An implementation of NParticular Step-by-Step tutorial using MassTransit. The tutorial for NServiceBus is here: https://docs.particular.net/tutorials/nservicebus-step-by-step/

RabbitMq

Easiest way to get RabbitMq up and running is to use Docker:

Then get the RabbitMq image:

docker pull rabbitmq

More info here: https://www.rabbitmq.com/download.html

Then run the container with these parameters, this will expose the RabbitMq ports.

docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

You should now be able to open the RabbitMq management portal at http://localhost:15672

The running project

Use the UI to produce an order by sending a PlaceOrder command. UI Sales processes the PlaceOrder command and sends an OrderPlaced event. Sales Billing receives the OrderPlaced event and tries to bill the order, when successfull it will send an OrderBilled event. Billing Shipping will wait for both OrderPlaced and OrderBilled event before shipping the order. Shipping

About

An implementation of NParticular Step-by-Step tutorial using MassTransit


Languages

Language:C# 100.0%