Distributed Transactions are Hard (How Two-Phase Commit works)

Distributed Transactions are Hard (How Two-Phase Commit works)

Hussein Nasser

2 года назад

32,509 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Abhinav Srivastava
Abhinav Srivastava - 04.07.2023 07:15

Is it moments like these when I should start considering NoSql for microservices rather than trying to achieve a fake sense of acidity through XA and Saga implementations of DT?

Ответить
Undaunted Research
Undaunted Research - 03.04.2023 13:46

Ladees vashrum

Ответить
Dipankar Das
Dipankar Das - 22.05.2022 18:54

Just want to ask what about timestamp protocol compared to 2 phase protocol couldnt understand their respective drawbacks🥲

Ответить
Abishek soni335
Abishek soni335 - 19.05.2022 16:00

Thanks for informative video . Would love to hear from you about 3 -Phase and SAGA .

Ответить
rwyam
rwyam - 16.05.2022 08:25

Maybe you could tackle transactional outbox next? I think you could apply the same even though it's meant for databae+messaging.

Ответить
Ravi Verma
Ravi Verma - 15.05.2022 21:10

We could've done other way right ? Like as soon as co ordinator realized that he didn't got response from one DB , It will ask other DB's to rollback that commit and don't accept Tx's anymore until that offline node comes back online and then all of them will commit tx. But ofcourse , As CAP theorem says we are trading consistensy for availability then.

Ответить
Hari Roshan
Hari Roshan - 15.05.2022 14:48

Make a video on mnesia database from erlang ecosystem

Ответить
mohamed hatim wahdani
mohamed hatim wahdani - 15.05.2022 00:00

Very good video, very well explained, Thnx !

Ответить
Susmit Vengurlekar
Susmit Vengurlekar - 14.05.2022 20:14

We can maintain two leaders, both of them accessing some database like etcd which is an inmemory distributed key value store. So if one goes down, the other is there. Or we can just keep one and spin up another when one goes down.

Ответить
Jo Bo San
Jo Bo San - 14.05.2022 00:51

We mostly use Paxos or Raft in distributed databases these days.

Ответить
Dan Ku
Dan Ku - 13.05.2022 18:02

Go Saga next

Ответить
X
X - 13.05.2022 17:26

It is not necessary to synchronize the distributed databases.
There are two arguements for this.
1. All human are distributed, our memories are not synchronized. What is important is just network communications to pass messages.
2. If you synchronize the databases, it is the same as having one database. This is wasteful and should be avoided. Only minimal backup as 'disk' is necessary.

Ответить
Simone De Luca
Simone De Luca - 13.05.2022 13:33

Hussein you're a GOD, you literally published this video 2h before my exam and now I've understood that! Thank you very much! Hope to see more videos about DB stuff 😉

Ответить
Shubhankar Srivastava
Shubhankar Srivastava - 13.05.2022 11:38

Database 3 : Ohh what happened, O was in a coma 😂😂😂

Ответить
Shiholololo
Shiholololo - 13.05.2022 08:06

As a student, for my project, I had to deploy my application on multiple servers for scaling (horizontal scaling). Since I was using docker and docker swarm to help in containers and orchestrestration, came the time to think 🤔 on how to handle the database.

Question was : How do I horizontally scale the database while keeping its state across these servers?
Ans : Distributed Transactions.

After going deep in it and understanding the level of complexity behind scaling a database horizontally, my prof advised me to just use a single database, cuz this problem is still, as of date not yet completely solved.

Distributed Databases is still an active area of research and development. He/She who solves the problem is set to impact the industry massively.

Just food for thought and Thanks for the video. :)

Ответить
Raksh Yadav
Raksh Yadav - 13.05.2022 07:14

Great Video!
Can you please discuss about Saga Implementation details.

Ответить
Sanjeev
Sanjeev - 13.05.2022 06:03

We try to solve one issue and get a new one. 😅
Great video though even though I am not a dev.

Ответить
Akshansh Gusain
Akshansh Gusain - 13.05.2022 05:49

Please talk about Saga Design Pattern in the BE Show.

Ответить
Soham Navadiya
Soham Navadiya - 13.05.2022 05:45

First

Ответить