Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Distributed transactions and the saga pattern
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
xstefank
March 01, 2018
Technology
440
0
Share
Distributed transactions and the saga pattern
Lasaris presentation 2018-03-01
xstefank
March 01, 2018
Other Decks in Technology
See All in Technology
Gaussian Splattingの表現力を拡張する — 高周波再構成とインタラクションへのアプローチ —
gpuunite_official
0
190
「強制アップデート」か「チームの自律」か?エンタープライズが辿り着いたプラットフォームのハイブリッド運用/cloudnative-kaigi-hybrid-platform-operations
mhrtech
0
210
Databricks 月刊サービスアップデートまとめ 2026年04月号
tyosi1212
0
130
データモデリング通り #5オンライン勉強会: AIに『ビジネスの文脈』を教え込むデータモデリング
datayokocho
0
290
障害対応のRunbookは作った、でも本当に動くの? AWS FIS で EKS の AZ 障害を再現してみた
tk3fftk
0
100
Cortex(Code) を ML モデルの 精度改善サイクルに組み込む.pdf
oimo23
0
160
開発サイクルのボーダーレス化に伴う組織変革から学んだこと / Organizational Transformation Amid the Borderless Development Cycle
mii3king
0
200
JaSSTに関わることで変わった人生観 #jasstnano
makky_tyuyan
0
130
Swift Sequence の便利 API 再発見
treastrain
1
290
JTCでRedmine利用者2700人を実現した手法 第二部
nobuonakamura
0
130
PdM・Eng・QAで進めるAI駆動開発の現在地/aidd-with-pdm-eng-qa
shota_kusaba
0
250
Purview Endpoint DLP 動かしてみた
kozakigh
0
440
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
410
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
3k
Embracing the Ebb and Flow
colly
88
5k
Writing Fast Ruby
sferik
630
63k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
220
Believing is Seeing
oripsolob
1
120
Heart Work Chapter 1 - Part 1
lfama
PRO
7
35k
Between Models and Reality
mayunak
4
290
Transcript
DISTRIBUTED DISTRIBUTED DISTRIBUTED DISTRIBUTED DISTRIBUTED DISTRIBUTED TRANSACTIONS AND TRANSACTIONS AND
TRANSACTIONS AND TRANSACTIONS AND TRANSACTIONS AND TRANSACTIONS AND THE SAGA PATTERN THE SAGA PATTERN THE SAGA PATTERN THE SAGA PATTERN THE SAGA PATTERN THE SAGA PATTERN
MASTER THESIS Use of Transactions within a Reactive Microservices Environment
https://issues.jboss.org/browse/JBTM-2920
MICROSERVICES ARCHITECTURE
ACID TRANSACTION Atomicity Consistency Isolation Durability
DISTRIBUTED TRANSACTIONS Two phase commit protocol O(n^2) messages blocking coordinator
- single point of failure
SAGA PATTERN long lived transactions compensations eventual consistency Hector Garcia-Molina
and Kenneth Salem, Princeton Unversity, 1987
SAGA EXECUTIONS 2PC - T Saga success - T1, T2,
T3, … , Tn compensation - T1, T2, … , Tk, Ck, Ck-1, … , C1
EXAMPLE SAGA Success Failure / Compensation
TWO PHASE COMMIT PROTOCOL
SAGA PATTERN
SAGA INVESTIGATION EXAMPLE
SAGA IMPLEMENTATION INVESTIGATIONS Axon framework Eventuate.io Narayana LRA Eventuate Tram
blog post
LRA EXECUTOR MOTIVATION
LRA EXECUTOR EXTENSION proof of concept / prototype LRA de
nition asynchronicity and scalability recovery capabilities protocol/platform independent https://github.com/xstefank/lra-executor-extension
SAGAS long lived transactions distributed environment compensations and failure recovery
atomicity vs availability
QUESTIONS
THANK YOU FOR YOUR ATTENTION
[email protected]
@xstefank http://www.slideshare.net