Temporal Unscripted: Compensating Transactions (part of Saga Pattern) in Python

preview_player
Показать описание
When something goes wrong between your microservices, how do you make it look like it never happened? The Saga Design Pattern is everywhere, and one important piece of it is writing compensating actions, a design pattern in itself! Emily Fortuna and Andrew Fitz Gibbon (Fitz) discuss and live code through implementing compensating actions in a Temporal Workflow using Python.

Protip! If "Live Coding" in real time is too slow for you, don't forget you can adjust the playback speed by using the little gear on the right hand corner of the video!

For more on the saga pattern and compensating actions pattern, see:

00:00 Intro
00:34 Why Compensating Actions are useful and necessary
1:50 Guest cat appearance 😂
3:32 Overview of coding example
4:59 Live coding starts
9:00 Write compensations class
15:14 Why put compensations *before* the action
16:32 Run the code
17:25 Test failures and compensations
---

Temporal is the simple, scalable, open source way to write and run reliable cloud applications.

Learn more

Developer resources
Рекомендации по теме
Комментарии
Автор

You guys are really developer advocates. Making every mistake a potential developer makes and recovering from there. Nice work.

xreln
Автор

Damn this was great. I've been trying to wrap my head around how to implement some simple saga patterns in my app and at least needed a simple starting point. This was exactly what I needed!

amirite
Автор

This is great is the code available? Thanks!

nicholasshook
Автор

Really nice explanation. But i have a question, if one activity fails, i still want the workflow to execute next activity. how can i achieve that?

sunilkarki
join shbcf.ru