Re:Ask HN: How do you deal with atomicity in microservice en...
by mh8h on Thursday November 28, 2019 @05:19PM
(#21660545)
The real business world is not atomic. The idea is to keep track of things that you've done, and do compensating things to roll their effect back if something goes wrong. See the Saga pattern for an example. I also found Gregor Hohpe's blog post [0] titled "Starbucks Does Not Use Two-Phase Commit" very informative.
[0] https://www.enterpriseintegrationpatterns.com/ramblings/18_s...