How To Build Loosely Coupled Microservices With MassTransit

Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/mic... ☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt 📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ 🚀 Support me on Patreon to access the source code:   / milanjovanovic   So you build a Microservices system, but how will your services communicate? Ensuring your Microservices communication is loosely coupled is a great way to improve the design. You can implement this using a message broker like RabbitMQ and the MassTransit library. I'll show you how in this video. Join my weekly .NET newsletter: https://www.milanjovanovic.tech Read my Blog here: https://www.milanjovanovic.tech/blog Chapters 0:00 What does our system look like 1:04 Adding the RabbitMQ docker container 1:38 Installing and configuring MassTransit 5:38 Defining message Contracts for loose coupling 7:02 Publishing messages with MassTransit IPublishEndpoint 10:25 Consuming messages with MassTransit IConsumer 15:32 Add consumers to MassTransit configuration 16:14 Implementing the GetArticle feature 20:22 Loosely coupled Microservices in action