Skip to main content
  1. Tags/

Distributed Design Pattern

2024

The Compensating Transaction Pattern

The Bird-Eye View # A Compensating Transaction Pattern is a technique used to ensure consistency when multiple steps are involved in a process, and some steps may fail. It essentially consists in having “undo” transactions for each successful step, so if something goes wrong later on, you can reverse the changes made earlier and maintain data integrity.