Saga Pattern Made Easy
Talkat JCON Europe 2023 · on Thursday, 2023-06-22· at 14:00· Cinema 6, Im Mediapark 1, 50670 Köln, Germany·
summary
Demonstrates a concrete Saga implementation using Temporal and a tiny saga library to run a trip-planning workflow that books flight, hotel, and excursion, with per-activity retry policies, timers, and an idempotency key to avoid double bookings. Live-codes the app, injects failures, and shows compensations running in LIFO compensations order to cancel excursion, hotel, then flight; uses Temporal orchestration (Java SDK + optional Cloud) and confirms the pattern works end-to-end while noting a duplicated-booking glitch to debug.
AI-written summary · about
chapters (10)
- 0:00Introduction to Saga pattern
- 1:03What are Sagas and why use them
- 6:24Sagas in microservices context
- 10:04Retry libraries and challenges
- 15:00Temporal’s event-driven approach
- 17:16Workflow and activities in code
- 22:56Adding compensations to Saga
- 28:20Microservices orchestration
- 35:43Recap and key takeaways
- 37:52Q&A session
related talks
17mSaga Pattern for Distributed Transactions
51mIntroducing Saga Pattern in Microservices with Spring Statemachine
27mBuilding Microservices Architecture The Right Way based on Saga Pattern
38mEpic Programming: How We Write Clear, Maintainable Sagas
50mTransactional solutions for microservices
28mFailing (and recovering) asynchronously: a saga
38mEpic programming: how we write clear and maintainable sagas
46mAddressing the transaction challenge in a cloud-native world
