Latest: https://youtu.be/LyVZySzKoI8 (Unit Testing Blazor ASP.NET 5) Previous: https://youtu.be/n2Gm0TftY3c
This is part 7 of the microservice playlist. In this video, I show how asynchronous communication is implemented in the publisher-subscriber model with RabbitMQ using MassTransit. Here Product Microservice is the publisher that publishes a message when a new product is added. The subscriber (consumer) which is the Customer microservice, consumes the message from the queue.
Mass Transit acts as the nice abstraction layer over the message broker.
Source Code: https://github.com/krchome/Microservices-With-Web-API-in-ASP.NET-5
Blog: https://kaushikroychowdhury.com/blog/microservice-communication-in-asp-net-5-with-rabbitmq/
Time Stamp:
Introduction: 0:00
Adding a Shared Model Library to the existing Solution : 3:00
Introducing Mass Transit as the RabbitMQ abstraction layer : 7:10
Installing the Required Mass Transit Package on Product Microservice : 8:55
Configuring Mass Transit in the Product (as Publisher): 10:30
Creating CustomerProduct Controller in the Product Microservice : 12:20
Configuring Mass Transit in the Customer (as Consumer): 15:00
Making Customer Microservice as Consumer with explanation : 16:35
Configuring MassTransit in Startup for Customer Microservice : 21:10
Testing the Communication Between the Publisher and Consumer Microservices Using Swagger :24:30
#RabbitMQ #ASPNET5Microservice #MicroservicesCommunication
Like || Share || Spread || Love
Make sure you subscribe to our YouTube Channel and never miss our latest video:- http://bit.ly/Kaushik-roy-chowdhury-subscribe
Support The Channel By Donations:
https://www.patreon.com/deveducator
For more updates Follow us on:-
Visit- https://kaushikroychowdhury.com
Facebook- https://www.facebook.com/deveducate
Twitter- https://twitter.com/krchome58
Linkedin- https://www.linkedin.com/in/chowdhurykaushik
Github- https://github.com/krchome
Blogger- https://krchome1.blogspot.com/
Live Journal- https://ext-5537239.livejournal.com/
MIx - https://mix.com/kaushikroychowdhury
#rabbitmq #masstransit #asp.net 5 #.net #microservices