- RabbitMQ (download link: https://www.rabbitmq.com/download.html) installed on local machine.
- .NetCore (V3.1)
- Visual Studio 2019.
- Be sure to have rabbitmq running.
- Open MassTransit.PublishSubscribe.sln with Visual Studio
- Right click on "MassTransit.Consumer.A" project > Debug > "Start new instance"
- Right click on "MassTransit.Consumer.B" project > Debug > "Start new instance"
- Right click on "MassTransit.Producer" project > Debug > "Start new instance"
At this point you should be able to see the Message created from the Producer in the console application of Consumer.A and Consumer.B.
This is a simple example of how publish and subscribe approach works with MassTransit. :)