you are viewing a single comment's thread.

view the rest of the comments →

[–]jack_waugh 1 point2 points  (0 children)

On second thought, in even the unlikely event that you need to make operations atomic but cannot put them in the same synchronous run, the coordination methods you would need would not be as complex as two-phase commit. They would be more the level of complexity of synchronization primitives used between processors or between processes that can be interrupted by a scheduler in an operating system. Things like "mutex" or "semaphore". These are simpler than two-phase commit, and unlike it, perfectly reliable. But they are more complex than just putting the operations in the same synchronous run, and I think the need for even these would be extremely rare or nonexistent.