O'Reilly logo

Cloud Native Development Patterns and Best Practices by John Gilbert

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Resulting context

The primary benefit of this solution is that it simply continues the theme of leveraging events to build the control flows of the system. Business violations are signaled as additional events and the compensations are the reactions to these specific events. All the same patterns and mechanisms are used to implement the compensation logic as a set of atomic actions, which in turn produce events per usual. No new techniques or tools must be learned or acquired. Only the context of each compensation must be understood.

As the context of each compensation is different, this solution does not try to force fit a generic solution where none exists. The industry has abandoned distributed two-phase-commit transactions because they ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required