Data Consistency and Tradeoffs in Distributed Systems

Data Consistency and Tradeoffs in Distributed Systems

Gaurav Sen

2 года назад

183,604 Просмотров

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


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

@Bibhaw
@Bibhaw - 14.08.2023 11:16

What is the use of kafka if all the communication been hapening directly from Leader to follower ?

Ответить
@aniketsingh9956
@aniketsingh9956 - 01.05.2023 20:02

That 'C++' expression was priceless 😁

Ответить
@sankalparora9374
@sankalparora9374 - 12.03.2023 20:46

Amazing explanation!
Thanks a lot!

I feel more and more confident in system design daily... Thanks to you, sir!

Ответить
@samarthtandale9121
@samarthtandale9121 - 31.12.2022 14:16

The way you teach concepts from scratch/ bottom-up way is the most favourite thing in this channel !

Ответить
@raj_kundalia
@raj_kundalia - 05.12.2022 21:23

Thanks for the video

Ответить
@zuowang9881
@zuowang9881 - 06.09.2022 04:22

I don’t think he released the next eventual consistency video

Ответить
@benparker8000
@benparker8000 - 28.08.2022 09:50

Amazing video. So easy to understand complicated topics. I have very limited experience with this and the pace and the content was perfect.

Ответить
@tze-ven
@tze-ven - 03.08.2022 12:29

Do you know you don't need supercomputer to scale? You can scale with cloud computing. The best thing is that you don't need physical shopping. You just click and pay. 😜

Ответить
@marcpaguilar
@marcpaguilar - 15.07.2022 23:39

The very quick smile you gave the camera when you said "c++" 🤣🤣🤣🤣

Ответить
@yashwanthd1998
@yashwanthd1998 - 09.07.2022 11:02

We are trying to solve single point of failure and consistency with distributed databases but ending up with the same . What am i missing here

Ответить
@nodirbeksharipov458
@nodirbeksharipov458 - 26.06.2022 12:33

you're a genious man

Ответить
@jeelanyelidandla2477
@jeelanyelidandla2477 - 18.06.2022 20:24

Gaurav, do the UK, US, and other countries' governments agree to store their data across other regions? what do you think?

Ответить
@aravindkumaresan2747
@aravindkumaresan2747 - 28.05.2022 08:03

Hi Gaurav, thanks for making such great contents regarding consistency in distributed systems. But in case of 2 Phase commit, if one of the follower node machine goes down, then the leader who got commit response from other follwers, also can't commit it and may need to rollup the transactions. So until and unless the single follower comes back, the system doesn't accept any write operations, so it still puts in a single point of failure right ?

Ответить
@darkstudio3170
@darkstudio3170 - 23.05.2022 13:57

He is wearing NITS Hacks T-shirt. I still remember when he came to NIT Silchar as a judge for NIT Hacks and we had a photo with him.

Ответить
@Varunshrivastava007
@Varunshrivastava007 - 03.05.2022 10:13

How did you solve the latency in a consistent system. Still servers have to send request from UK to EU for db updates (to remain consistent).

Ответить
@harshshah2791
@harshshah2791 - 13.04.2022 22:25

What happens if transaction is to add 100 rs and leader retried 100 times, so 100 rs added 100 times?

Ответить
@rajveersingh2056
@rajveersingh2056 - 28.02.2022 13:58

Tsunami in Harvard☺️

Ответить
@eduardolacerda1557
@eduardolacerda1557 - 22.02.2022 16:02

Thanks a lot for sharing this content! this is very helpful. Although I was aware of a lot of concepts there, your samples help me to figure them out a lot better. :)

Ответить
@shubhamsingh6929
@shubhamsingh6929 - 14.02.2022 12:20

For new readers, I think it should be explicitly pointed out that Consistency in ACID is very different from Consistency in CAP.
ACID consistency means that the values in DB should be valid i.e. if we are making two transactions both should complete before committing to disk.
CAP consistency means read requests to different nodes of a distributed system return the exact same data.
A system can exist without CAP consistency but a system should never exist without ACID consistency. ACID consistency is must-have for any RDBMS to be reliable/useful while CAP consistency can be a trade-off as per requirement.

To be honest C in ACID doesn't add any proper value. If a transaction is Atomic, Isolated, and Durable, it automatically becomes consistent.

Ответить
@sureshbabu8794
@sureshbabu8794 - 29.01.2022 11:50

What about partitioning? You didn't explain or I might have missed..

Ответить
@DebajyotiDev
@DebajyotiDev - 26.01.2022 23:50

Is C in ACID properties o SQL same like CAP theorem? What u said is for CAP. But if u check the oracle Docs Consistency in ACID means Data should not violate any DB constraints FK, UK, Col types etc…correct me if am wrong.

Ответить
@suchismitagoswami5609
@suchismitagoswami5609 - 23.12.2021 18:50

Great explanation. I am having one questions as followed. Ideally, the followers or the replicas should reside in different regions or data centers to ensure availability. So, this introduces latency in every write operation in transforming the data synchronously from leader to the followers if we follow 2 phase locking. How to handle this ?

Ответить
@srikanthmaganty524
@srikanthmaganty524 - 18.12.2021 07:47

I like ur energy and the selfless appetite to share with community...

Ответить
@kajalpareek8291
@kajalpareek8291 - 22.11.2021 11:08

Hi Gaurav ,Thanks for such informative content. Looking forward for a series on design pattern

Ответить
@swastikjainsj
@swastikjainsj - 20.11.2021 10:53

one more question

When we delete anything it store in our computer only in hard disk just remove the link so that we cannot find that file


And now we can store another data on this data it will overlap.

but



how can we transfer the deleted storage files to cloud that means our disc will can work for more years

Ответить
@swastikjainsj
@swastikjainsj - 20.11.2021 06:53

how Inertnet work ? GB MA how jio airtel control net speed ?
Any new info ? apart from underground wires 😐

Ответить
@pallavgurha
@pallavgurha - 29.10.2021 11:13

Hi Gaurav, just wondering whether high water mark index will help here and the client can be assured that the commit is acknowledged as anyways everything noways a async in nature and once all the nodes in the cluster are up to the speed we can start showing the change to the client.

Ответить
@sagararora2830
@sagararora2830 - 28.10.2021 19:32

Hi Gaurav Sen, when the video on Eventual consistency will come. Waiting for it

Ответить
@robotempire
@robotempire - 27.10.2021 08:02

Thanks bro I have been doing front-end for the past 5 years. I’m just putting myself back on the market now and this video is a great refresher on the fundamentals consistency in distributed systems.

Ответить
@sagararora2830
@sagararora2830 - 26.10.2021 11:58

Now I get to know When we went to banks and they are like servers are not responding, but actually in the backend they are keeping themselves consistent. :D

Ответить
@hasanulislam3112
@hasanulislam3112 - 26.10.2021 07:58

Could you recommend any good system design concepts apart from your interview-focused course?

Ответить
@basitahmad8067
@basitahmad8067 - 25.10.2021 15:44

Next Hotstar 🙏... High in demand

Ответить
@shakeelahmed8015
@shakeelahmed8015 - 22.10.2021 06:32

So we can roll back messages from Kafka 🤔

Ответить
@mukunthsenthilkumar8822
@mukunthsenthilkumar8822 - 22.10.2021 06:24

This video is pure gold! Great stuff, Gaurav!

Ответить
@VijayInani
@VijayInani - 20.10.2021 06:31

C >> C++ ... LOL

Ответить
@lakeman4101
@lakeman4101 - 19.10.2021 12:32

When i started listening to your videos ... i had no idea other e than you know your stuff, right now I can keep up quite alright...i now appreciate the level of your skill...and the chronological argument you give and use to explain. I love this man

Ответить
@stephensmithwick7502
@stephensmithwick7502 - 15.10.2021 19:00

I loved the pause on the C++ joke >_< as if to say yes I’m going there

Ответить
@zaleel
@zaleel - 13.10.2021 05:12

Have a question.
If all the commit/prepares fail after multiple retries. Should we roll back on master as well? And in in 2 PC, instead of prepare and commit. Why can't we just: First send the update in phase 1 i.e. commit and then in phase 2 just compare A /master to slaves. If if matches it's done. If it fails we mark the state as disputed or eventual roll back

Ответить
@yt-hq6cu
@yt-hq6cu - 09.10.2021 19:38

You said facebook is down and it was down after a week. what a coincident!

Ответить
@praveenkurapati7300
@praveenkurapati7300 - 08.10.2021 19:27

While rollback sent by the master, does it send to all slaves ?

Ответить
@saiprasad84
@saiprasad84 - 06.10.2021 00:26

Isn't the leader a SPOF here? Just curious.. may be if the leader fails, one of the followers become the leader? Wonder how that might happen and if there are databases that make it happen automatically.

Ответить
@Raja-kl4op
@Raja-kl4op - 05.10.2021 20:50

Hi Gaurav, Great video! But I have a doubt. Why does communication over a long distance lead to latency? Don't servers use electromagnetic waves(speed of 3 x 10^8 m/s) to communicate with each other. So, the distance of a few 1000KM's will only cost few milliseconds. Is that enough to cause latency? Or did I miss something?

Ответить
@mohammadhemel6412
@mohammadhemel6412 - 04.10.2021 21:07

While I am watching this videos, Facebook, Instagram and WhatsApp are down

Ответить
@nameunknown007
@nameunknown007 - 04.10.2021 06:32

One thing I learnt from this video today is you can’t get super computers in super market.

Ответить