RabbitMQ with ASP.NET Core — Microservice Communication with MassTransit

What is Message Broker

What is RabbitMQ?

Advantages Of RabbitMQ

Demonstration of RabbitMQ setup

Protocol supported

What is MassTransit

Setting Up The Environment

docker run -d --hostname my-rabbit --name some-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management
cd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.17\sbin
rabbitmq-plugins enable rabbitmq_management
net stop RabbitMQ
net start RabbitMQ

Getting Started

Install-Package MassTransit
Install-Package MassTransit.AspNetCore
Install-Package MassTransit.RabbitMQ
Todo.cs
RabbitMqConsts.cs
Startup.cs
TodoController.cs
Program.cs
TodoConsumerNotification.cs

Testing our application

Multiple startup projects

Summary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store