Saga Pattern Explained — How Microservices Handle Transactions Without Losing Data
GK TechVerse · 2026-06-17 · 9м 5с · 52 просмотров · YouTube ↗
Топики: durable-execution
Аудио ещё не скачано.
📝 Summary
Summary ещё не сгенерён.
📜 Transcript
Transcript ещё не сделан.
⚙️ Pipeline jobs
Нет job'ов в очереди.
📄 Описание YouTube
Показать
Last video we fixed @Transactional inside one service. But what happens when two microservices each write to their own database as part of one business action? You can't use a single transaction. You can't use @Transactional across services. And if one step fails — your data is split across two databases in an inconsistent state. This is the distributed transaction problem. And the Saga Pattern is how companies like Netflix, Uber, and Amazon solve it at scale. What you'll understand by the end: → Why distributed transactions are fundamentally different → Choreography vs Orchestration Saga — when to use each → What compensating transactions actually are → The real failure modes and how Saga handles them Chapters 00:00 — The problem @Transactional can't solve 01:41 — Why not @Transactional or Two Phase Commit 03:39 — The restaurant analogy — how Saga thinks 04:55 — Choreography Saga — services talk via events 05:55 — Orchestration Saga — one boss controls the flow 06:42 — Compensating transactions — the undo button 07:24 — Choreography vs Orchestration — which to pick 08:14 — What's the hidden risk inside Saga itself? #gktechverse #java #springboot #springboottutorial