Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/masstransit-saga
☄️ 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: https://www.patreon.com/milanjovanovic
A well-known pattern for solving distributed transactions is the Saga pattern. A saga is a sequence of local transactions, where each local transaction updates the Saga state and publishes a message triggering the next step in the Saga. In this video, I'll show you how to create an orchestrated Saga state machine using MassTransit with RabbitMQ for message transport and PostgreSQL for saga persistence.
Implementing The Saga Pattern With Rebus And RabbitMQ
https://www.milanjovanovic.tech/blog/implementing-the-saga-pattern-with-rebus-and-rabbitmq
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Subscribe for more:
https://www.youtube.com/@MilanJovanovicTech
Chapters
0:00 Setting the scene, adding Saga steps
3:52 Defining the Saga state
5:22 Creating the State Machine Saga
10:21 Configuring the Saga with MassTransit
12:29 Testing the State Machine Saga