3 ms·
A classic: Starbucks does not use two-phase commit https://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html https://www.enterpriseintegration
by hinkley 7y ago
A classic:
Starbucks does not use two-phase commit
https://www.enterpriseintegrationpatterns.com/ramblings/18_starbucks.html https://www.enterpriseintegrationpatterns.com/ramblings/18_s...
- drwiggly 7y agoHmm there are some reasons this isn't directly applicable. This mode of behavior is possible due to relying on payment processors ability to reliably transfer money, and the business's ability to verify that potential. I don't think Starbucks would with if they accepted hand written IOUs. If you can't rely on an actors intent to such a degree, your actions need to also be less costly to be efficient. Correlated Ids and idempotent end points with retry is pretty much a two phase commit. Something eventually checks and deals with exceptions. Accounting for loss and developing ways to operate with it make a process viable.
- ratneshsingh35 7y agothanks for sharing this, good read