Andy Pols Geek, Entrepreneur

Two Phase Commit is just like a wedding

Michael Thorpe told me about this wonderful explanation of two stage commits (from the book Transaction Processing : Concepts and Techniques):

The chapter on two phase commit compared it to a wedding with the minister being the commit point. "do you take this man" (vote to commit) - yes, then PREPARE to commit, "do you take this woman" (vote to commit) - yes, then PREPARE to commit. "Anyone out there have a good reason not to do this?"  no, then "I pronounce you man and wife" - transaction is committed.

comments powered by Disqus