Distributed Systems 7.3: Eventual consistency

  Рет қаралды 28,118

Martin Kleppmann

Martin Kleppmann

Күн бұрын

Пікірлер: 26
@mrfchannel142
@mrfchannel142 2 жыл бұрын
I already immensely enjoyed the DDIA book, but for me being more of a visual/interactive learner this is just a total gem. Thanks a lot for making those lectures public, Martin!
@aliwassouf
@aliwassouf Жыл бұрын
You have an outstanding ability to explain things, thanks for the effort. I hope to see more from you. I am preparing for system design interviews and this video is one of the gems in my collection now
@tirumaleshy9636
@tirumaleshy9636 4 жыл бұрын
Good stuff martin! Please keep updating new lectures from DDIA
@zhou7yuan
@zhou7yuan 3 жыл бұрын
Eventual consistency Linearizability advantages Linearizability Downsides [0:32] (calendar app example) [2:13] (phone airplane mode conflict) [3:08] The CAP theorem [4:59] Eventual consistency [6:31] Strong eventual consistency [7:55] Eventual delivery Convergence [8:23] Properties [9:13] Summary of minimum system model requirements [11:01] atomic commit consensus | total order broadcast | linearizable CAS linearizable get/set eventual consistency | causal broadcast | FIFO broadcast
@manveersingh5822
@manveersingh5822 2 жыл бұрын
That calendar example was so good sir. Thanks!
@hpandeymail
@hpandeymail 2 жыл бұрын
Great Content Shree Martin .. thanks for sharing such good insights across all your videos.
@andrewzhurov5123
@andrewzhurov5123 Жыл бұрын
Excellent material.
@OKJazzBro
@OKJazzBro 2 жыл бұрын
13:40 Linearizable get/set would need quorum + _synchronous_ read repair right? If the read repair is done asynchronously, another get operation could execute before the read repair happens and get an older value from stale replicas thus violating linearizability.
@mohamedbalshy3105
@mohamedbalshy3105 8 ай бұрын
exactly what i was thinking about, how it need a quorum and async ?
@umamaheshsukamanchi
@umamaheshsukamanchi 4 жыл бұрын
Very well explained.thanks for sharing.
@satinek
@satinek 2 жыл бұрын
I really liked the presentation of the calendar example. I‘ve heard this example before but not as well presented as here.
@arturuklejewski7339
@arturuklejewski7339 3 жыл бұрын
Great presentation ! Thank you for sharing.
@benjaminkuchcik4600
@benjaminkuchcik4600 4 жыл бұрын
If the isolated node in the Quorum receives user update and crash (by example hard vm & disk crash, you are not lucky), it means that the Eventual Consistensy implies data loss when network failures happens ? In the example of the Calendar, it could lead to a calendar entry totaly removed.
@Ondra011
@Ondra011 4 жыл бұрын
Good point, although it doesn't seem like a proper formal definition of eventual consistency was given, it sounds like that situation would violate the invariant that all replicas end up in the same state. Eventual delivery fixes this by only talking about non-faulty replicas.
@shoumikghosal
@shoumikghosal 4 жыл бұрын
Interesting point! Maybe a new data object being created locally in an isolated/partitioned node involves some bit updates/logging to the local permanent storage? Since otherwise not having an internet connection would mean the calendar app loses a perfectly valid new entry after a crash.
@rohankathpal7642
@rohankathpal7642 6 ай бұрын
No it won't, because if it was written to the oplog of the replica before the crash, then it would reflect the change in the replica, and if it's not written in the oplog, the replica would copy all the transactions until it's oplog looks same as the oplog of the master node.
@abhinavghosh725
@abhinavghosh725 2 жыл бұрын
the calendar example was impressive
@blocksmithbrothers
@blocksmithbrothers 2 жыл бұрын
In case of eventual consistency where read and writes are processed at local, how we can guarantee durability if local crashes after acknowledgement of write but further disseminating to other nodes?
@iSumitYadav
@iSumitYadav 4 жыл бұрын
How the last write win policy working? Last write was made by iphone and not mac!
@yihanwu3823
@yihanwu3823 3 жыл бұрын
I think this is kind of misleading, as the info got lost just because the network was cut off and could not even make a write to server.
@vhscampos1
@vhscampos1 2 жыл бұрын
Last write was made by the Mac (edit: iPhone) only if write order is defined by actual time of the day (physical clock). It it is instead defined by logical clocks, like Lamport clocks, it could be the case that both writes had the same Lamport clock, but the Mac won out because it had a lesser node ID, for example.
@florayym
@florayym 2 жыл бұрын
@@vhscampos1 I am a little confused about the first part of your answer. According to the physical clock, isn't the case that the last write was made by iPhone, not Mac? I think it makes sense that it's actually "defined by logical clocks". And when logical clocks are the same, they compare node ID to decide who makes the last write.
@vhscampos1
@vhscampos1 2 жыл бұрын
@@florayym My mistake indeed. I meant iPhone where I wrote Mac.
@2tce
@2tce 2 жыл бұрын
@@yihanwu3823 Agreed. It was offline. Zero communication with any replicas. So when it came back online it got updated with the latest. The offline phone update was a never written. So there is no such thing as LAST WRITE in this case. So yes, I agree with you that this example was off, and misleading.
@420_gunna
@420_gunna Жыл бұрын
Anyone know the "AVD" algorithm that he's talking about? Hard to google
@mehdisaffar
@mehdisaffar 22 күн бұрын
I believe it is ABD algorithm, as stated in the lecture notes
Distributed Systems 8.1: Collaboration software
36:26
Martin Kleppmann
Рет қаралды 22 М.
Distributed Systems 5.1: Replication
25:21
Martin Kleppmann
Рет қаралды 45 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 23 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
L17: Consistency Models in Distributed Systems
18:58
Distributed Systems Course
Рет қаралды 30 М.
Intro to Distributed Systems | sudoCODE
11:07
sudoCODE
Рет қаралды 7 М.
Distributed Locks | System design basics
28:50
Tech Dummies Narendra L
Рет қаралды 137 М.
Data Consistency and Tradeoffs in Distributed Systems
25:42
Gaurav Sen
Рет қаралды 192 М.
Distributed Systems 8.2: Google's Spanner
18:41
Martin Kleppmann
Рет қаралды 34 М.
Data Consistency Between Microservices
8:52
CodeOpinion
Рет қаралды 25 М.
Distributed Systems 2.3: System models
20:45
Martin Kleppmann
Рет қаралды 50 М.
Distributed Systems 4.3: Broadcast algorithms
13:45
Martin Kleppmann
Рет қаралды 42 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 23 МЛН