Grokking the Modern Frontend System Design Interview
0% completed
Real Time Collaboration with OT and CRDTs
Sam and Ana share one Basket shopping list. The list holds the item "Eggs", quantity 6. At the same moment, Sam changes the quantity to 12 on his phone, and Ana renames the item to "Free range eggs" on her laptop.
In one design, each phone sends the whole item, and the server keeps the one that arrives last. Ana's arrives last, so the list now says "Free range eggs", quantity 6, and Sam's change has disappeared without any message. In a second design, each phone sends only the field it changed, and the list says "Free range eggs", quantity 12.
Both designs receive the same two edits
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%