Grokking Microservices Design Patterns
Vote

0% completed

The Inner Workings of the Saga Pattern

We have covered the architecture of the saga pattern. This lesson follows a saga while it runs, and then looks at what happens when the recovery itself goes wrong.

Undoing in Reverse Order

Order matters when a saga unwinds. If step three fails, the saga runs the compensation for step two, then the compensation for step one. It works backwards on purpose. A later step is often built on state that an earlier step created. Undoing them out of order can leave the data in a state no step intended.

The Saga Log

The architecture lesson introduced the saga log

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content