Loading video player...
Try out MongoDB Atlas: https://fandf.co/4oyeRzX A huge thanks for this collab! ๐ค ======โกโกโก====== In this video, I dive into the Saga Design Pattern for microservices and show how it solves the pain of distributed transactions, 2PC, and keeping data consistent. Iโll walk you through how I use MongoDB multi-document transactions, the Outbox pattern, and Change Streams to make Sagas reliable and easy to implement. Consider becoming a member of the channel by joining me โค๏ธ https://www.youtube.com/channel/UCqAL_b-jUOTPjrTSNl2SNaQ/join โ Buy me a coffee: https://www.buymeacoffee.com/softwaredeveloperdiaries ๐ Become my Patreon and get exclusive perks: https://patreon.com/softdevdiaries ๐ผ Follow me on LinkedIn and drop me a message if you'd like: https://www.linkedin.com/in/gadirovgs/ ๐ป Also, let's connect on GitHub: https://github.com/gusgad ๐ Resources: Saga Design Pattern: https://www.geeksforgeeks.org/system-design/saga-design-pattern Code: https://github.com/gusgad/youtube-tutorials/tree/saga ๐ Timestamps: 0:00 Intro 0:43 What is Saga trying to solve? 5:02 Choreography-Based approach for Saga 8:30 Compensating actions 12:18 MongoDB 14:53 Orchestration-Based approach for Saga 16:33 Code demo 20:05 Best practices And don't forget to subscribe for more videos like this ๐