How do you handle business process and workflows in an asynchronous event driven architecture? You can use event choreography and orchestration with compensating actions to overcome the lack of distributed transactions or two-phase commits in a distributed system. Here's how Event Choreography & Orchestration work and examples using NServiceBus.
🔔 Subscribe: https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw?sub_confirmation=1
💥 Join this channel to get access to source code & demos!
https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw/join
🔥 Don't have the JOIN button? Support me on Patreon!
https://www.patreon.com/codeopinion
📝 Blog: https://codeopinion.com/event-choreography-orchestration-sagas/
👋 Twitter: https://twitter.com/codeopinion
✨ LinkedIn: https://www.linkedin.com/in/dcomartin/
Sample Code:
https://github.com/dcomartin/LooselyCoupledMonolith/tree/NServiceBus
0:00 Intro
0:44 Choreography vs Orchestration
2:13 Choreography Message Flow
4:31 Orchestration Message Flow
8:06 Compensating Actions
10:07 NServiceBus Saga
CodeOpinon: https://codeopinion.com
Twitter: https://twitter.com/codeopinion