What is Database Sharding?

  Рет қаралды 159,181

Be A Better Dev

Be A Better Dev

Күн бұрын

Пікірлер: 225
@RandomShowerThoughts
@RandomShowerThoughts Жыл бұрын
honestly might be the most complete and thorough explanation of sharding.
@BeABetterDev
@BeABetterDev Жыл бұрын
Thanks so much for your kind words!
@hamadaparis3556
@hamadaparis3556 2 жыл бұрын
You've simplified your explanation like google engineers do when they give lectures, I'm sorry if that sounds strange but I've realized that the people who simplify complex things they really know what they are doing awesome man Cheers.
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thank you so much for the kind words!
@mohamedshehata3979
@mohamedshehata3979 2 жыл бұрын
Nice words
@cameronmccoy2204
@cameronmccoy2204 2 ай бұрын
😊😅😊😊pp
@cameronmccoy2204
@cameronmccoy2204 2 ай бұрын
@@BeABetterDevpppp
@cameronmccoy2204
@cameronmccoy2204 2 ай бұрын
@@BeABetterDevp Pop p p pppp
@dannydatt
@dannydatt 3 жыл бұрын
Network guy trying to get an understanding in a different field. That's an outstanding walk-through and very much appreciated. Thank you for your work and quality presentation.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Glad it was helpful!
@Aidanhyland
@Aidanhyland 3 жыл бұрын
I am burning through all your videos. You are making me a better SAAS Test Engineer! Keep up this great work!
@v.m.5850
@v.m.5850 Жыл бұрын
Watched countless videos and barely understood the concept. Your video on the other hand explained everything along with pros and cons super simply. Thanks a ton.
@sn-wg9gp
@sn-wg9gp 2 ай бұрын
Been studying system design for interviews. All the videos handwave to sharding. We would shard the db across different regions. I had rough idea what it is that we split the db in to smaller pieces, but nothing concrete. Now it make perfect sense with this amazing video
@abhishekghosh5550
@abhishekghosh5550 2 жыл бұрын
This is seriously such a great video man. I spent the entire Sunday understanding Sharding. Not that I didn't get started with the concept, however, this video just made everything clear at the end of the day. Thank You.
@yfzhangphonn
@yfzhangphonn Жыл бұрын
Best lesson about database scalability I found, so easy to understand.
@rjjlucy
@rjjlucy 3 жыл бұрын
In most ~20min videos, I get tired soon and close them after 5min. I can’t believe your video is so good that I totally forgot time and finish watching all of it
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thank you so much Jingyi! Its these kinds of comments that keep me motivated to make more content :) Stay safe Daniel
@ase713
@ase713 7 ай бұрын
Dude, this was outstanding! Super helpful and covered everything I needed to know!
@cd92606
@cd92606 3 жыл бұрын
Great video, especially your description about the non-uniformity problem.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Rotary Dialer! Yea the non-uniformity issue is one I've been personally bitten by in the past. Glad you enjoyed the video!
@codespace747
@codespace747 7 ай бұрын
Best video ever made on sharding
@filesopen6188
@filesopen6188 3 жыл бұрын
this video entails very good explanation and this also entails complex understanding.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thank you!
@bharat_arora
@bharat_arora 3 жыл бұрын
Finally found some decent content over this topic. I already had an idea on this topic just wanted to revise it. Thanks a lot for making the insightful videos.
@devdewboy
@devdewboy Жыл бұрын
Thanks for the straight forward easy to grasp concept of sharding. Give this to someone else and we would have gotten a bunch of technical wordy mumbo-jumbo.
@Alexan6548
@Alexan6548 2 жыл бұрын
Very clear. One of the best tutorial I have ever seen
@mathisinav4267
@mathisinav4267 2 жыл бұрын
Hands down! the best explanation I've seen on database sharding, excellent!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're so welcome. Glad you enjoyed.
@MohammedMubashshir-q8v
@MohammedMubashshir-q8v 3 ай бұрын
Awesome explanation of sharding, one of the best videos out there. Thanks brother!
@ВладимирЛапенков-г1э
@ВладимирЛапенков-г1э 3 жыл бұрын
best explanation of sharding i've heard!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thank you very much!
@eugeniosp3
@eugeniosp3 2 жыл бұрын
Bro I'll watch anything you make. If you made a video teaching me how to watch paint dry I'd take notes. Keep up the damn good work my mans.
@Bhaskarlnm
@Bhaskarlnm 2 жыл бұрын
Daniel, no words.. looking at your playlists content and videos …amazing. Great great effort to help people. Kudos to you 👏👏👌👌👌
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome!
@saiaussie
@saiaussie 8 ай бұрын
Hey dude, you're a star! Very clear and upto the point! I cant thank you enough.
@patrick1778
@patrick1778 3 жыл бұрын
you are so good at explaining concepts
@wlcheng
@wlcheng 2 жыл бұрын
Great video! Such a clear explanation of how database sharding works.
@harishbendale6818
@harishbendale6818 Жыл бұрын
Very clear, and simple explanation.
@BeABetterDev
@BeABetterDev Жыл бұрын
Glad it was helpful!
@Lordnoashi
@Lordnoashi 2 жыл бұрын
Amazing explanation, loved it. Thank you, it will help for the future interviews I have.
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Glad I could help!
@poloska9471
@poloska9471 3 жыл бұрын
Dude you make some really awesome content. Please please keep making videos! I love the clarity of your speech, voice, and presentation. I understand and can follow along in your videos a lot better than more other channels. Earned my subscription and likes! Keep killing it homie!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thank you so much for your kind words and welcome to the channel!
@tamaraamanda2483
@tamaraamanda2483 3 жыл бұрын
Prepping for Amazon TPM interview and this is so helpful!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Tamara and good luck on your interview! Make sure you focus on those leadership principles !
@ChauDuong1982
@ChauDuong1982 3 жыл бұрын
Thanks for the videos. Great explaination.
@mivel9763
@mivel9763 2 жыл бұрын
Had a hard time grasping on what database sharding actually meant but your video really helped me understand it, thanks! :)
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome!
@JayPatel12928
@JayPatel12928 3 жыл бұрын
Watched some of your random videos on sys design, and now im hooked. Great content!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks so much J! Glad you enjoyed!
@amrikmalhans
@amrikmalhans 2 жыл бұрын
@@BeABetterDev yes
@arikedada
@arikedada 2 жыл бұрын
great video, I understand what idempotency operations entails, thank you
@donaldkennedy7993
@donaldkennedy7993 2 жыл бұрын
superb explanation of DB scaling & sharding & W/R databases for a non DB person ;)
@Anton_Rozhanskii
@Anton_Rozhanskii 3 жыл бұрын
Great explanation, Daniel. Thank you
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome Anton!
@IQUE928
@IQUE928 4 ай бұрын
incredible explanation, thank you!
@RajuGupta-st1hj
@RajuGupta-st1hj 2 жыл бұрын
Thank you so much for the post. Good work. Keep it up.
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome Raju!
@sharonleibel
@sharonleibel 2 жыл бұрын
Great explanations! Thanks, Keep it coming!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thanks Sharon!
@eternalnight9453
@eternalnight9453 3 жыл бұрын
New here. Loved your talk! Your presentation and teaching is elegant and simple. Really appreciate it, thank you!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You are so welcome!
@lucasarbex926
@lucasarbex926 2 жыл бұрын
Great content man!! It helped me a lot!! Keep up with the good work!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thank you!
@rajt1998
@rajt1998 2 жыл бұрын
Very well explained. Thank you
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome!
@bambooyu5960
@bambooyu5960 Ай бұрын
Thank you so much for the great explanation
@quang.luu.179
@quang.luu.179 Жыл бұрын
Good stuff man. I love the clarity you bring to a subject. Subscribed.
@subhasishhalder4817
@subhasishhalder4817 2 жыл бұрын
How come I didn't find your channel before?
@JamesQQuick
@JamesQQuick 2 жыл бұрын
This was awesome. Thanks!
@taniaasim
@taniaasim 2 жыл бұрын
This is great and super clear. Thank you!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome
@jackforcecity
@jackforcecity 3 жыл бұрын
Great job. Very well explained!!!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks so much Jackson! Glad you enjoyed :)
@andrewkicha1628
@andrewkicha1628 Жыл бұрын
Great job on this one, I came here to know more about sharding, but I learned lots of useful information before you even dived into the topic ;)
@BeABetterDev
@BeABetterDev Жыл бұрын
Glad it was helpful!
@rschmidtzalles
@rschmidtzalles 3 жыл бұрын
clear and concise. subscribed
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Libert and welcome!
@saifmohamed1776
@saifmohamed1776 3 жыл бұрын
which better to start with for database basics: - introduction to database systems c.j date . - database internals. // if there are any better or recommended books or materials pls mention. * Great explanation.
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Hi Saif, This is a tough question to answer. I would step back for a moment to ask why are you trying to learn about databases? I think the answer will guide how/what to tackle first. For example, if you're just planning on using dbs, the database internals may be a bit overkill (but good to know overall). Could you tell me more about why you're learning db's and maybe I can guide you more? Thanks, Daniel
@saifmohamed1776
@saifmohamed1776 3 жыл бұрын
@@BeABetterDev to be aware of the basics in general like concepts physical logical at first And in backend specific. I'm very grateful for your concern
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Hi Saif, I briefly looked at the two resources you mentioned, I think a better choice is to read Database Internals. I feel that it is much more modern and covers some of the important aspects of database challenges today such as distributed systems and availability. The other book is quite dated and although I'm sure would be beneficial, I think things have changed so rapidly recently that I'm concerned the content will be a bit stale. One thing to note is to not get too bogged down with the details. To be a great developer with database understanding you don't always need to understand the low level details. Knowing how things work at a high level with the ability to dive deep when you need to is much more valuable. Hope this insight helps and I wish you best of luck on your studies. Daniel
@saifmohamed1776
@saifmohamed1776 3 жыл бұрын
@@BeABetterDev thank you
@santoshlml
@santoshlml 3 жыл бұрын
Well explained. Thank you!!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome Santosh! Glad you enjoyed.
@nodrift9503
@nodrift9503 Жыл бұрын
Perfect explanation. Thank you
@willemplug3366
@willemplug3366 Жыл бұрын
Super clear. Thank you!
@drew4980
@drew4980 3 жыл бұрын
Are there any database tools that make this easier? Couldn't someone write some software to create a wrapper around a sharded DBMS that could handle the routing and re-sharding with a given hashing key?
@SofiaGoyal
@SofiaGoyal 3 жыл бұрын
Really good work man... such a detailed video...
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks Sofia! Glad you enjoyed :)
@chandnisaini9176
@chandnisaini9176 2 жыл бұрын
Well explained!!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Thank you!
@hpandeymail
@hpandeymail 2 жыл бұрын
Very well formed content .. thanks 🙏
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome!
@peterroger249
@peterroger249 2 жыл бұрын
Much thank you for your great KZbin help. I am new to Excel and Chatbot. How can I migrate the Excel database, export it from Microsoft Azure WebApp, and import it into AWS Chabot? Keep having errors missing QID and others on the AWS Chabot console. Please help show me the fastest way to convert the Excel and make it compatible with AWS Chatbot?
@estebanquintana156
@estebanquintana156 2 жыл бұрын
Great explanation. Thank you
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You are welcome!
@panggrayta
@panggrayta 3 жыл бұрын
woww...!! great videos, great presentation, great explanation. thank you, keep sharing..
@AnilKumar-lb3qf
@AnilKumar-lb3qf 2 жыл бұрын
Excellent presentation, very good explanation 👍👍
@MegganCurrell
@MegganCurrell 6 күн бұрын
Great analysis, thank you! Could you help me with something unrelated: My OKX wallet holds some USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How should I go about transferring them to Binance?
@r-rtz
@r-rtz Жыл бұрын
A more interesting concept though is how you generate these unique id's that are used in the sharding / partitioning and ensure uniqueness
@benhunt2023
@benhunt2023 2 жыл бұрын
This feels like the khan academy of coding. Well done.
@bajtre
@bajtre 3 жыл бұрын
Great explanation!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Glad it was helpful!
@samlinsell900
@samlinsell900 3 жыл бұрын
Vids are awesome, really enjoy them. Interesting that you didn't touch on the lack of thought to database design, indexing and maintenance etc as a way to improve performance. Interested to know why? Especially given the cost of scaling in serverless environments.
@markryan430
@markryan430 Жыл бұрын
OMG, I just Sharded myself!
@simonemariottini1011
@simonemariottini1011 3 жыл бұрын
Really useful content! Keep it up!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks so much Simone!
@rayprusia4753
@rayprusia4753 3 жыл бұрын
Your videos are awesome! Thanks
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks ray!
@skmahaboobbasha6059
@skmahaboobbasha6059 3 жыл бұрын
Great vedio please make vedio on opsmanager installation on production environment
@francoisbourdages2906
@francoisbourdages2906 2 жыл бұрын
très bien expliqué, merci
@itiscinnamoncafe
@itiscinnamoncafe Жыл бұрын
Love longer videos ❤
@geekaffairs6475
@geekaffairs6475 3 жыл бұрын
very well explained
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks so much!
@trantrongty8065
@trantrongty8065 3 жыл бұрын
Thank you that really helpful great video
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You're very welcome Tran!
@kgcpk
@kgcpk 2 жыл бұрын
Superb explanation 😍
@jeevaengg
@jeevaengg 2 жыл бұрын
good explanation!!
@milequinze
@milequinze 2 жыл бұрын
Awesome! Thanks a lot!
@BeABetterDev
@BeABetterDev 2 жыл бұрын
You're very welcome
@alexeykorovko6704
@alexeykorovko6704 Жыл бұрын
very good explanation, thank you one point is not clear - do we really have advantage of availability / fault tolerance, in case we have an intermediate layer that routes the requests? for me it is like the same, isn't it?
@فيافيالتأملمهمةإصلاح
@فيافيالتأملمهمةإصلاح 3 жыл бұрын
great explanation thank u so much
@BeABetterDev
@BeABetterDev 3 жыл бұрын
You are welcome!
@loaizar95
@loaizar95 2 жыл бұрын
amazing video!! Understood almost everything and am not a it guy.. the only thing I did not get is the difference between partition mapping and routing :(
@Tiparium_NMF
@Tiparium_NMF 5 ай бұрын
I love this breakdown, but it does somewhat leave me wondering when Sharding would be a good vs a bad idea. The cons seem pretty hefting in comparison to the pros. It would have been nice to run through a few specific different use cases and when one strategy would be better than another.
@duzgunkenan
@duzgunkenan 6 ай бұрын
Great content, thank you
@random-characters4162
@random-characters4162 Жыл бұрын
God bless you, sir ✌️
@HemitPatel-s3f
@HemitPatel-s3f 3 ай бұрын
is the sharding process explained in this vid the same as in redis clusters?
@kishoretvk
@kishoretvk 2 жыл бұрын
Great vidoe, keep up the good work
@gunnerandersen4634
@gunnerandersen4634 2 жыл бұрын
Hi there, a nerdy engineer here, I think you could bind some kind of hash or unique ID to your queries, and then track this as a state, then you can verify that a replica has gone through that particular state to make sure the values you are using are at a valid state for the new given query. Not saying this is any good at all, don't get me wrong, as a matter of fact, I think performance-wise might be actually very bad, but it kind of solves the event problem somehow.
@royal4210
@royal4210 2 жыл бұрын
Thank you programmer charlie
@cyclomiha
@cyclomiha 8 ай бұрын
Hmm..how about PITR? For analytics you could have replica with multi-master approach to each shard, right?
@vanchark
@vanchark Жыл бұрын
This is one of the best explanations that I've seen on this topic, but it still isn't really clear to me how the problem of eventual consistency that you see with the single master-slave paradigm is fixed with sharding. It seems like the problem is still there, since even with shards this master-slave paradigm still exists, just on a smaller scale now
@GrzegorzPiotrowski-g4s
@GrzegorzPiotrowski-g4s Жыл бұрын
Thanks a lof for this video!
Жыл бұрын
@BeABetterDev What if I were to opt for synchronous replication for my read replicas? Wouldn't that provide me with a high level of consistency (strong consistency) between the master node and the replica nodes? Besides, AWS RDS provides async replication for read replicas, does that mean it is eventual consistent? If so, if I am building an application that needs to opt in strong consistency, shouldn't I use AWS RDS read replicas then? What would be an alternative option to that?
@studychitchat7535
@studychitchat7535 3 жыл бұрын
nice video.. Can u pls tell the software u r using for making this video
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Hi there, thanks for the kind words. I am using photoshop with a drawing tablet. You can learn more about my approach here: kzbin.info/www/bejne/bHfOaqt6pa-brM0
@shivakumarranjithn5584
@shivakumarranjithn5584 3 жыл бұрын
Great content!
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Thanks so much Shivakumar!
@dushyantchaudhry4654
@dushyantchaudhry4654 Жыл бұрын
questions: 1. Database is a slightly misleading term.. when we say database don't we really mean the software (RDBMS / NoSQL) that logically organises the data stored in storage SSDs? 2. If yes are we not splitting the responsibility of the software? i,e. The data still is in the SSD library right? Just the database management software is loaded in different servers and each DBMS server given responsibility for only some of the queries.
@yna8588
@yna8588 Жыл бұрын
Can we scale up and scale down the storage of database as per daily requirement using sharding?
@atacoonthis
@atacoonthis 3 жыл бұрын
This dude is the Cr1tikal of databases
@BeABetterDev
@BeABetterDev 3 жыл бұрын
Haha thank you Daniel!
@puryteevee
@puryteevee Ай бұрын
Thanks Critikal!
@sandrojorgeoliveira175
@sandrojorgeoliveira175 Жыл бұрын
Thank you, Dude!!!
@Anonimus_13
@Anonimus_13 2 жыл бұрын
Cool video) What app do you use for drawing?
@BeABetterDev
@BeABetterDev 2 жыл бұрын
Adobe Photoshop and a Veikk drawing tablet!
@asian1599
@asian1599 Ай бұрын
doesn't the routing layer introduce single point of failure as well though?
@poketopa1234
@poketopa1234 6 ай бұрын
What I always miss in these videos is, doesn’t introducing a routing layer just kick the can down the road? Now you have all traffic going to a singular routing node, which is not scalable and can fail. What happens when you need to scale the routing node?
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 96 М.
What is API Idempotency and Why Is It Important?
12:13
Be A Better Dev
Рет қаралды 39 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2,6 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 39 МЛН
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 28 МЛН
What is a Database Transaction? Be ACID compliant!
9:46
Be A Better Dev
Рет қаралды 64 М.
When should you shard your database?
21:20
Hussein Nasser
Рет қаралды 79 М.
SQL vs NoSQL Explained
11:37
Be A Better Dev
Рет қаралды 332 М.
The Birth of SQL & the Relational Database
20:08
Asianometry
Рет қаралды 205 М.
What is Database Sharding?
9:05
Anton Putra
Рет қаралды 61 М.
Event Driven Architectures vs Workflows (with AWS Services!)
15:49
Be A Better Dev
Рет қаралды 93 М.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
Decomplexify
Рет қаралды 2 МЛН
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 183 М.
System Design: What is Load Balancing?
9:28
Be A Better Dev
Рет қаралды 47 М.
Trick-or-Treating in a Rush. Part 2
00:37
Daniel LaBelle
Рет қаралды 45 МЛН