For 2PC to work there is one coordinator that controls that: https://en.wikipedia.org/wiki/Two-phase
For 2PC to work there is one coordinator that controls that: https://en.wikipedia.org/wiki/Two-phase_commit_protocol#Commit_(or_completion)_phase
Eitherway, unless absolutely unavoidable, I suggest not doing distributed transactions unless you really get into these protocols. It will just slow down everything A LOT, and worst case lock you down.
If you need cross-DO coordination often, then maybe you need a different architectural design for your application.
Eitherway, unless absolutely unavoidable, I suggest not doing distributed transactions unless you really get into these protocols. It will just slow down everything A LOT, and worst case lock you down.
If you need cross-DO coordination often, then maybe you need a different architectural design for your application.
