[Distributed Transactions in Salesforce <> Saga Pattern]
Hey guys, how’s it going?
I’ve been diving into microservices these past few weeks and exploring how to apply them within a Salesforce Org.
Although we don’t have direct access to the database, we can still manage how objects relate to one another and how loosely coupled applications are.
I’m curious to know if any of you have tried implementing the SAGA pattern to orchestrate distributed transactions in Salesforce, and how that approach worked out for you.
I’m considering building an Orchestrator in Salesforce to manage distributed transactions using Platform Events. This could help decouple different domains within Salesforce and mitigate the "UNABLE_TO_LOCK_ROW" issue, even in well-optimized Salesforce Orgs.
Thanks, guys!