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
xstefank
March 01, 2018
Technology
0
360
Distributed transactions and the saga pattern
Lasaris presentation 2018-03-01
xstefank
March 01, 2018
Tweet
Share
Other Decks in Technology
See All in Technology
レビューを増やしつつ 高評価維持するテクニック
tsuzuki817
1
820
クラウドサービス事業者におけるOSS
tagomoris
3
940
Culture Deck
optfit
0
460
Visualize, Visualize, Visualize and rclone
tomoaki0705
9
57k
ハッキングの世界に迫る~攻撃者の思考で考えるセキュリティ~
nomizone
13
5.5k
次世代KYC活動報告 / 20250219-BizDay17-KYC-nextgen
oidfj
0
300
Raycast AI APIを使ってちょっと便利な拡張機能を作ってみた / created-a-handy-extension-using-the-raycast-ai-api
kawamataryo
0
150
Exadata Database Service on Cloud@Customer セキュリティ、ネットワーク、および管理について
oracle4engineer
PRO
1
1.5k
あれは良かった、あれは苦労したB2B2C型SaaSの新規開発におけるCloud Spanner
hirohito1108
2
760
Cloud Spanner 導入で実現した快適な開発と運用について
colopl
1
880
全文検索+セマンティックランカー+LLMの自然文検索サ−ビスで得られた知見
segavvy
2
130
2.5Dモデルのすべて
yu4u
2
930
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Embracing the Ebb and Flow
colly
84
4.6k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.4k
Documentation Writing (for coders)
carmenintech
67
4.6k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
10
1.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
420
Unsuck your backbone
ammeep
669
57k
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