Because a long-running business process could last seconds to days, you cannot lock resources within a service using a distributed transaction. So what's the alternative? The real world has a solution, it's a reservation. A reservation allows you to have a time-bound limited guarantee which allows you to coordinate with other services.
🔗 EventStoreDB
https://eventsto.re/codeopinion
🔔 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
👋 Twitter: https://twitter.com/codeopinion
✨ LinkedIn: https://www.linkedin.com/in/dcomartin/
📧 Weekly Updates: https://mailchi.mp/63c7a0b3ff38/codeopinion
0:00 Intro
1:25 Reservation Real World Example
4:09 Synchronous Example
7:11 Asynchronous Example
#softwarearchitecture #softwaredesign #serviceorientedarchitecture