Description
In this video, we understand problems that arise due to distributed databases and replication lag. Why does YouTube hide subscriber count partially?
Instead of 190343, it says 190K subscribers. Reason is subscriber count value is different in different replica clusters, and it gives users a bad experience when they see going back in time and seeing a stale count value showing a false decrement.
We understand the various other problems that come into picture with replication lag, and how to mitigate the same as application developers.
The DDIA Book is a great recommendation for System Design and I would like to summarise the chapters and my learnings here.
References
System Design Playlist: https://bit.ly/system-design-course
DDIA Book: https://amzn.to/3B6TJcm
Sponsored By Educative.io
โ
๐๐ฑ๐๐ฐ๐ฎ๐๐ถ๐๐ฒ.๐ถ๐ผ [46% OFF] ๐๐ปhttps://bit.ly/educative-unlimited-extra-discount
Educative.io coupon "rachit" to get extra discount or use the link above to get "Unlimited" access to "ALL" courses on their websites - React, System Design, Coding Interview in C++, Python, Java, Redux, Docker and what not!
Chapters
00:00 Recap of Single Leader Architecture
02:04 How Single Leader differs from Multi-Leader Replication
3:15 Benefits of Multi-Leader Replication
4:02 Example of Write Conflicts in Multi-Leader Replication
5:08 Conflict Problem Analysis in single-leader replication
5:36 Conflict Problem Analysis in multi-leader replication
07:01 Few strategies for to resolve conflicts
08:31 Topologies in Multi Leader Replication
09:35 Problem with All to All Replication
10:38 Co-relation with the Consistent Prefix Reads
11:03 Version Vectors
11:35 Reality of Multi Leader Replication - poorly handled
11:57 Why documentation and testing is important?
12:08 Leader-less Replication
12:58 How reads and writes work in leader-less replication?
14:02 R+W Greater Than N: Quorum Reads and Writes
15:42 Demo of how better availability and tolerance in leaderless replication systems
๐๐ก๐ง๐๐ฅ๐ฉ๐๐๐ช ๐ฃ๐ฅ๐๐ฃ ๐ฃ๐ฅ๐ข๐๐จ๐๐ง๐ฆ
โ
๐๐ฑ๐๐ฐ๐ฎ๐๐ถ๐๐ฒ.๐ถ๐ผ [10% OFF for First 90 Users] ๐๐ปhttps://educative.io/rachit
โ
๐ฆ๐๐๐๐ฒ๐บ ๐๐ฒ๐๐ถ๐ด๐ป [Discount for Indian audience] ๐๐ปhttps://bit.ly/design-rachit
โ
๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด ๐๐ผ๐ผ๐ธ๐ [Amazon Affiliate] ๐๐ปhttps://amazon.in/shop/rachitjain
SUBSCRIBE AND HIT BELL ICON TO CHECK MORE OF MY CONTENT
http://youtube.com/RachitJain?sub_confirmation=1
๐ฆ๐ข๐๐๐๐ ๐ฃ๐ฅ๐ข๐๐๐๐๐ฆ
โ
Portfolio Website - https://rachitiitr.com
โ
Instagram - https://www.instagram.com/rachitiitr
โ
LinkedIn - https://linkedin.com/in/rachitiitr
โ
Twitter - https://twitter.com/rachitiitr
โ
Github - https://github.com/rachitiitr/DataStructures-Algorithms
โ
Facebook - https://fb.me/AlgorithmsWithRachitJain
๐๐ ๐ฃ๐ข๐ฅ๐ง๐๐ก๐ง ๐ฃ๐๐๐ฌ๐๐๐ฆ๐ง๐ฆ
โ
๐๐ผ๐ฑ๐ถ๐ป๐ด ๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐ ๐๐ฒ๐ฐ๐๐๐ฟ๐ฒ๐ ๐๐ปhttps://www.youtube.com/watch?v=J1JZjhdr3Oo&list=PLfBJlB6T2eOshO8-LYaMt-Pes1IFojJ_l
โ
๐๐ฟ๐ฎ๐ฝ๐ต ๐ง๐ต๐ฒ๐ผ๐ฟ๐ ๐ฃ๐น๐ฎ๐๐น๐ถ๐๐ ๐๐ปhttps://www.youtube.com/watch?v=xyJxCjweLKE&list=PLfBJlB6T2eOu3dTPKzvAf2axlmQUXGY91
โ
๐++ ๐ฆ๐ง๐ ๐ฃ๐น๐ฎ๐๐น๐ถ๐๐ ๐๐ปhttps://www.youtube.com/watch?v=g-1Cn3ccwXY&list=PLfBJlB6T2eOvyt21CIX_PMmhOgWHiFVab
โ
๐ ๐ ๐ฃ๐ฒ๐ฟ๐๐ผ๐ป๐ฎ๐น ๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐ ๐๐
๐ฝ๐ฒ๐ฟ๐ถ๐ฒ๐ป๐ฐ๐ฒ๐ ๐๐ปhttps://www.youtube.com/watch?v=0Vmtmqa9Og0&list=PLfBJlB6T2eOuUAof03sQFlUcrk_Bc7jOA
โ
๐ฃ๐ฟ๐ผ๐ฑ๐๐ฐ๐๐ถ๐๐ถ๐๐ ๐ง๐ถ๐ฝ๐ ๐ฃ๐น๐ฎ๐๐น๐ถ๐๐ ๐๐ปhttps://www.youtube.com/watch?v=0Vmtmqa9Og0&list=PLfBJlB6T2eOuUAof03sQFlUcrk_Bc7jOA
โ
๐๐ถ๐ณ๐ฒ ๐๐ฒ๐๐๐ผ๐ป๐ & ๐ ๐ฒ๐ป๐๐ผ๐ฟ๐๐ต๐ถ๐ฝ ๐๐ปhttps://www.youtube.com/watch?v=9SGM0EqyUc0&list=PLfBJlB6T2eOv8klCHHNVLOmTOIxKu-xzn
๐ฃ๐ฅ๐ข๐๐ฅ๐๐ ๐ ๐๐ก๐ ๐ฃ๐ฅ๐ข๐๐๐๐๐ฆ
โ
Github โบ https://github.com/rachitiitr/DataStructures-Algorithms
โ
Programming Blog โบ http://rachitiitr.blogspot.com
โ
CodeForces โบ http://www.codeforces.com/profile/rachitjain
โ
CodeChef โบ http://www.codechef.com/users/rachitiitr