Compensating Transactions For Saga Pattern Error Handling

Published: 14 July 2023
on channel: Milan Jovanović
9,008
320

☄️ 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  

If you're using the Saga pattern, you need to prepare for things going wrong. What will you do in that case? The standard approach is to start a compensating transaction that will fix the previous error in the saga.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
   / @milanjovanovictech  

Chapters
0:00 Reviewing the Saga implementation
3:20 What if something goes wrong?
4:39 The reasons why a Saga can fail
5:47 Starting a compensating transaction
9:35 Cancelling the Order to complete the failure path
12:52 Saga error handling walkthrough


Watch video Compensating Transactions For Saga Pattern Error Handling online, duration hours minute second in high quality that is uploaded to the channel Milan Jovanović 14 July 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 9,008 times and liked it 320 visitors.