The Basics of Database Sharding and Partitioning in System Design

  Рет қаралды 77,108

Exponent

Exponent

Күн бұрын

Пікірлер
@tryexponent
@tryexponent 10 ай бұрын
Make sure you're interview-ready with Exponent's system design interview prep course: bit.ly/3YTjsjH
@jay_wright_thats_right
@jay_wright_thats_right 10 ай бұрын
Animations to visualize what she is saying would make this video perfect!
@chellamgmoorthy
@chellamgmoorthy Жыл бұрын
I didn't knew what a database sharding was. This video gave me good amount of topics for me to research and learn. Thanks for the video!
@harshita9936
@harshita9936 2 ай бұрын
This video was great. Short. Crisp. To the point.
@AhsanTirmiziVlogs
@AhsanTirmiziVlogs 4 күн бұрын
@MuhammadAsif-nx7om
@MuhammadAsif-nx7om Жыл бұрын
Great and to the point explanation, No bluff Thanks
@tryexponent
@tryexponent Жыл бұрын
Glad you liked it!
@JacquesJoubert-c8z
@JacquesJoubert-c8z Ай бұрын
This was an amazingly informative video to get a high level overview of what database sharing is, thank you!
@Deepz007
@Deepz007 Жыл бұрын
Great video on sharing, but partitioning wasn't mentioned or discussed.
@oefzdegoeggl
@oefzdegoeggl Жыл бұрын
a few things to add. i prefer partitioning based on a guaranteed key in the sense it will not distribute badly ... so the "first letter of name" is a bad idea. better use the record id and group 100k of them or what into a partition. then before storing partitions on different servers, there are a few more things to do first. one is to split modifying queries from read-only queries (which has to be done on the application level) so a simple read-replica-server (which is trivially to be setup in postgres) can be used. next what is possible is a db split on the logical level. i mean for example keep the user's core data on db1 and chat messages on db2. leaving out foreign keys and using weak references instead, with a periodic cleanup job that resolves broken links is a good idea, eliminating issues on backup restore when cut in a bad moment as well.
@goofballbiscuits3647
@goofballbiscuits3647 8 ай бұрын
Coming from a decade+ of data work with health records, I have to bump this comment. Name, location and birthdate combined still aren't unique. Messing up data with potential tromps like this is straight up lethal in some fields. Remember, friends: bad data is worse than no data.
@AbhishekKumar-b1j1x
@AbhishekKumar-b1j1x 9 ай бұрын
Some people are very beautiful with a helping hand , thanku❤
@edmoregosha8937
@edmoregosha8937 7 ай бұрын
The video script explains the basics of database sharding and partitioning in system design. It discusses how sharding can help manage large amounts of data by breaking it up into smaller partitions spread across multiple servers. The script also highlights the advantages and disadvantages of sharding in terms of scalability, performance, and operational complexity. Key moments: 00:32 Traditional databases encounter limitations with increasing data size, necessitating sharding to enhance scalability and performance. -Geobase sharding partitions data based on user locations, reducing latency by routing users to the closest node. -Range-based sharding divides data by key value ranges, simplifying partition computation but potentially leading to uneven splits. -Hash-based sharding uses hashing algorithms to evenly distribute data across partitions, reducing hotspots but potentially separating related rows. -Automatic sharding dynamically manages data partitioning for higher performance and scalability, but manual sharding at the application layer increases development complexity. 03:55 Sharding enables scaling, faster queries, and system availability, but poses challenges like complex management, hot spots, and high operational costs. -Advantages of sharding include scalability, faster queries, and improved system availability during outages. -Disadvantages of sharding involve complex data relationships, potential hot spots, and operational costs for maintaining high availability. Generated by sider.ai
@octavian0704
@octavian0704 Жыл бұрын
very well described, thanks for sharing.
@DesireStockhausen
@DesireStockhausen 2 ай бұрын
Thanks for the interesting content! 😍 Just a small off-topic question: 😅 I have these words 🤨. (behave today finger ski upon boy assault summer exhaust beauty stereo over). Not sure how to use them, would appreciate help. 🙏
@KelliWestwood
@KelliWestwood 12 күн бұрын
Great analysis, thank you! Could you help me with something unrelated: I have a SafePal wallet with 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?
@ayushgogna9732
@ayushgogna9732 9 ай бұрын
you guys are amazing i recently found your channel i am learning a lot and i am loving it
@IuisZeledon
@IuisZeledon 2 ай бұрын
Thanks for sharing such valuable information! I have a quick question: I have a SafePal wallet with USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). How should I go about transferring them to Binance?
@devkiosk
@devkiosk Жыл бұрын
Awesome explanation.
@tryexponent
@tryexponent Жыл бұрын
Thanks!
@bantamchick
@bantamchick 23 күн бұрын
Do watch this video with closed captioning on for unintentional comic effect, because for some reason CC does not always know what sharding is, so it sometimes captions it as "sharting". So you get to learn about "manual vs automatic sharting".
@cristinasanchez9029
@cristinasanchez9029 Жыл бұрын
Greatly explained, I subbed
@netspie
@netspie 5 ай бұрын
Just memorize every word and say in the job interview.. unbelievable..
@josephkabemba3211
@josephkabemba3211 Жыл бұрын
Crystal clear
@SankalpCollege-f2o
@SankalpCollege-f2o 8 ай бұрын
Great video!
@robbybankston4238
@robbybankston4238 10 ай бұрын
I would think that another potential disadvantage would be if you are using commercial rather than OpenSource operating systems or databases where the licensing costs increase as the number of servers increase also.
@pieter5466
@pieter5466 11 ай бұрын
Good video but confusing use of the term 'partition', which is different than 'shard'.
@vaishnaves1723
@vaishnaves1723 Ай бұрын
Sharding is also data partitioning. Partitioning can mean different things based on context, similar to “consistency” (which is different in the context of ACID and CAP)
@samislam2746
@samislam2746 Ай бұрын
you're strong
@altruistization
@altruistization 3 ай бұрын
you did not mention eventual consitency as a drawback of sharding?
@vladyslavsosnov8412
@vladyslavsosnov8412 Жыл бұрын
Awesome, thanks
@mandydawson6199
@mandydawson6199 Жыл бұрын
Who is she and how do we get more videos with her?
@rmuneeb1
@rmuneeb1 7 ай бұрын
Untill her hands moved I thought she was an AI robot 😂
@goofballbiscuits3647
@goofballbiscuits3647 8 ай бұрын
Sorry, everyone... I parted *_and_* sharded 😢
@AvinashRaj
@AvinashRaj Жыл бұрын
Well thanks for reading the script.
@vivekkaushik9508
@vivekkaushik9508 9 ай бұрын
😂😂😂
@codermccoderson
@codermccoderson 8 ай бұрын
A lot of these YT educators write down the material before speaking to the camera. What’s your point?
@daphenomenalz4100
@daphenomenalz4100 5 ай бұрын
Every single youtuber has to be prepared bruh, they can't just speak everything from mind and stutter when thinking :| It's not a reaction video
@caitlinmclaren2695
@caitlinmclaren2695 Жыл бұрын
Monolithic Databases??
@sriranjitharaghuraman1646
@sriranjitharaghuraman1646 10 ай бұрын
Some visualization would have gone a long way
@tryexponent
@tryexponent 10 ай бұрын
Thanks for the feedback!
@junyulu4648
@junyulu4648 3 ай бұрын
今天的油管就看到这儿了
@marcello4258
@marcello4258 Жыл бұрын
It sounds you messed up partitioning with sharding. And commodity hardware does not have ECC - don’t run a db on it.
@mick7827
@mick7827 Жыл бұрын
Each partition is stored within the same database server SO it's easier because sharding require multiple database servers ?
@deletevil
@deletevil 4 ай бұрын
"commodity hardware does not have ECC - don’t run a db on it" SQLite is a file based database. It doesn't have to reside into the non-paged part of the RAM. High energy cosmic radiation can corrupt only the volatile memory cells, not the storage. Also modern commodity hardware have some level of ECC for CPU cache memory. Single bit ECC support for L2 cache, and multi-bit ECC for L1 cache (at least my 10 year old Intel i7 has). A whole query operation will probably fit into the cache size of the CPU unless the data size for columns exceeds the L2 cache size of the CPU (good luck exceeding that, for example say L2 cache is 256 KB and even if we have half of it available for our query operation at this moment with all the data for columns, it would take more than 100 columns each containing >1000 bytes to surpass that cache boundary, domain corresponding these kinda large query is not a thing of commodity hardware anyways. Hospital billing, hotel management, restaurant billing? Nah). Taking worst case memory access time say 100 nano-seconds to fetch the data from RAM to L2 cache memory. Radiation will have to corrupt those exact memory bits inside the RAM within that 100 nano-seconds during the fetching cycle. Then it will take another 100 or so nano-seconds to write the data back to the disk (worst case disk access time of 50ms (0.005 ns) is assumed). It's extremely unlikely; almost next to impossible for that radiation to randomly flip those specific memory cells inside the RAM out of billions of memory cells pertaining to the SQLite update/delete query executing function that will complete it's execution and save the data into the disk within like 10 milliseconds at most (including all network overhead of system calls). SQLite for Desktop is your friend. However, if you intend to use any of the client-server architecture based database like MySQL etc then your statement is valid indeed.
@lakshminarayanacharan837
@lakshminarayanacharan837 6 ай бұрын
You are looking so cute 🥰
@junyulu4648
@junyulu4648 3 ай бұрын
her name pls
@MJ-cf9nl
@MJ-cf9nl 2 ай бұрын
It is: NoneOfYourBusiness
@sk-vs9nt
@sk-vs9nt 5 ай бұрын
am in love with this lady what her id
@satvikkhare1844
@satvikkhare1844 Жыл бұрын
reading for a teleprompter is not teaching!! sure it gave me topics that I can refer myself
@codermccoderson
@codermccoderson 8 ай бұрын
A lot of youtube educators have their material scripted before speaking to the camera? What’s your point?
@KeshavmurthyRamachandra
@KeshavmurthyRamachandra 8 ай бұрын
you got the definition of Sharding wrong. understood you never did sharding in your life.
Facebook System Design Interview: Design Twitter
24:22
Exponent
Рет қаралды 73 М.
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 97 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 1,9 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 48 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,3 МЛН
Amazon System Design Interview: Design Parking Garage
29:59
Exponent
Рет қаралды 1,4 МЛН
What is Database Sharding?
26:56
Be A Better Dev
Рет қаралды 159 М.
Load Balancers for System Design Interviews
4:42
Exponent
Рет қаралды 41 М.
So What Do You ACTUALLY Do As A Technical Program Manager at Microsoft?
8:35
So What Do You ACTUALLY Do?
Рет қаралды 4,3 М.
They Enabled Postgres Partitioning and their Backend fell apart
31:52
Hussein Nasser
Рет қаралды 43 М.
Top 6 Most Popular API Architecture Styles
4:21
ByteByteGo
Рет қаралды 961 М.
CDNs in High-Performance System Design
4:33
Exponent
Рет қаралды 25 М.
Systems Design in an Hour
1:11:00
Jordan has no life
Рет қаралды 25 М.
What is Database Sharding?
9:05
Anton Putra
Рет қаралды 62 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 1,9 МЛН