Saga Pattern | Distributed Transactions | Microservices

preview_player
Показать описание
Sagas are an essential concept in microservices and distributed systems design, and they often come up in system design interviews. In microservice architectures, transactions often span multiple services. Sagas provides a way to manage these long-running transactions, ensuring that either all operations are executed successfully or the entire transaction is rolled back. Understanding Sagas demonstrates your ability to understand and design complex distributed systems. In this video we will discuss

1. Distributed Transactions
2. Two Phase Commit
3. Orchestration
4. Choreography

FOLLOW ME ON:
▶️ Main Channel: /bytemonk

Timestamps -
00:00 - Introduction
00:34 - Distributed Transactions Part 1
01:38 - Two-Phase Commit (2PC)
05:08 - Distributed Transactions Part 2
05:52 - Sagas
07:41 - Orchestrated Saga
08:55 - Choreographed Saga
09:20 - Orchestrated Saga vs. Choreographed Saga
10:25 - High-Level System Design
13:10 - Sagas vs. Two-Phase Commit (2PC)
15:20 - Orchestrated Saga vs. Two-Phase Commit (2PC)

System Design Interview Basics Playlist:

AWS Certification:

#sagas #2pc #distributed
Рекомендации по теме
Комментарии
Автор

Best Saga explanation I've ever seen.

VictorAug
Автор

An underrated channel. Keep going and it's definitely gonna be a popular channel

krzysztof
Автор

You deserve more views.. this is gold..

sfsadfsadfasdf
Автор

Very interesting and informative video. Please keep sharing such videos where a non technical people can understand it.

nuthankamera
Автор

Explanation is giving real time project experience and very interesting and informative video.

ronaksiddhpura
Автор

Explanation is giving real time project experience. Thanks a lot

sathishd
Автор

How have I never seen a video from this channel? Amazing content my friend. Subscribed.

pedromiotti
Автор

great video, always love your animations and explanations

ujjwalaggarwal
Автор

as you said we can use zookeeper to implement 2 phase commit. Similarly, is there any framework which can be used to implement orchestrated saga?

KrishDholeria
Автор

Great video. Might help if you could also discuss about some tools or frameworks to implement saga.

java-aws-techie
Автор

@ByteMonk How do you edit/create content ?

yravi
Автор

Hi, I have a doubt in SAGA. Consider service1 and service2. When service1 passes, service2 will be initiated. When the service2 is failed, and if the service1's value is changed in the meantime, what will happen? Will it lead to data inconsistency? Correct me if I am wrong.

Ar-rpjo
Автор

how is an orchestrated saga async if it makes serial requests and requests depend on each other? Isn't it the same as a central coordinator ?

liangtianzhang
Автор

Still in Orchestrator SAGA there is single point of failure if orchestrator goes down rite?

pravee
Автор

can we have multiple instances of a Saga orchestrator to ensure high availability, scalability, and fault tolerance, by ensuring that only one orchestrator instance handles a particular Saga at any given time.

zummotv
Автор

Nice video ! can you share article you talking about in video?

pradeepbisht
Автор

i can do but actually i dink din din din

metaltoad