Database Design Tips | Choosing the Best Database in a System Design Interview

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024

Комментарии • 525

  • @MohitKumar-os3ir
    @MohitKumar-os3ir 4 года назад +296

    You make me intelligent with every video I watch of yours.

    • @codeKarle
      @codeKarle  4 года назад +25

      Thanks!! That makes our day :)
      Do share this with your colleagues and spread the knowledge :)

    • @parimi001
      @parimi001 3 года назад +1

      I agree with you 100%

    • @SaiTeja-ir7yv
      @SaiTeja-ir7yv Год назад

      Ture !!

    • @mohammedsardar3779
      @mohammedsardar3779 Год назад +1

      Why no design videos these days?? What happend?

  • @harshalchaudhari8137
    @harshalchaudhari8137 2 года назад +101

    Just in case someone is still confused when to use column based DBs here's a little explaination:
    Consider a database which has a large volume of data with 100 columns. And your application most of the time just queries only a few columns (let’s say 4-5 columns). Then in case of document DBs or row based DBs (relational Dbs) all data will be loaded row by row in main memory for processing , parsing and other operations. It will be a waste of a lot of effort in loading and processing of unnecessary columns. Column based DBs are used to tackle this problem where a large amount of data is stored in column based fashion so that the application can query only a few columns of large volume of data.
    - reference: Designing Data-Intensive Applications. by Martin Kleppmann.

    • @kuldeepchouhan8467
      @kuldeepchouhan8467 10 месяцев назад

      Well explained!!

    • @saurabhmidha3609
      @saurabhmidha3609 3 месяца назад +1

      But you can also do the same thing in RDBMS. you can easily right a query to get only few columns in the result

    • @sahasutirtha
      @sahasutirtha 3 месяца назад +3

      @@saurabhmidha3609 The data in RDBMS is stored row-wise in the disk in sequential blocks whereas in Columnar DB the data is stored column-wise making the query for certain columns simpler as all the column data is present in a singular sequence. Even though we can write a similar query for RDMS they would be inefficient as it would have to go through all the rows to only fetch a few columns' data.

  • @amandabarton938
    @amandabarton938 Год назад +37

    This has been the most useful 23 mins of System Designs Learning I've come across yet. And this is after I took an 11 hour course... you put it all together for me so much more succinctly. Thank you!!

  • @krishnabirla16
    @krishnabirla16 2 года назад +9

    WOW. Watched so many videos and finally found the gold content. No flashy animations and funky music. Just old school 1-1 explaining with clarity, examples and strong fundamentals. Beauty of online education.

  • @YashRaithatha1989
    @YashRaithatha1989 3 года назад +54

    Thanks for creating such an insightful video.
    There are few things that I would suggest adding to all the important points that you have mentioned:
    1> Write Heavy vs Read Heavy systems is also an important point to consider for database selection. We cannot write scale RDBMS (as generally in RDBMS the write is on the single primary instance). For DocumentDB, we need sharding to write scale it which can be done but are not so natural as it is in ColumnarDB like Cassandra where we need to mandatorily choose the partition key during the data modelling itself. So for write heavy systems I prefer to go with Cassandra if I don't need ACID. For write heavy systems that need ACID we should choose RDBMS with multi master configuration and for that application needs to take care of bifurcating the data to the appropriate master based on the decided key.
    2> Graph database for mapping social network type of data.

    • @shponder9510
      @shponder9510 2 года назад

      Can you give examples of Write Heavy systems and Read Heavy Systems and why?

    • @MakilaBakhtun
      @MakilaBakhtun 2 года назад

      @@shponder9510 OLTP vs OLAP

    • @ambarishhazarnis9531
      @ambarishhazarnis9531 Год назад

      @@shponder9510 URL shortener- you will have more reads than writes. may be 100:1 ratio of reads to writes

  • @madhumantichakraborty6579
    @madhumantichakraborty6579 4 года назад +10

    Best video tutorial available on the internet for choosing between databases for designing systems. Period

    • @codeKarle
      @codeKarle  3 года назад

      Thanks for the kind words :)

  • @harshavardhan9991
    @harshavardhan9991 4 года назад +12

    Those who prefer AWS Managed Services. Here, is the list
    Blob Storage : AWS S3
    Caching : AWS ElasticCache
    Full Text Searching : AWS ElasticSearch
    Time Series Database : AWS TimeStream
    Analytical Databases : AWS Redshift ( It depends, sometimes we can use AWS S3 for storing large csv files and then we can use AWS ElasticMapReduce(EMR) to process S3 Files)
    RDMS (Relational Databse) : AWS Aurora
    Document Database : AWS DynamoDB
    Columnar Database : Not sure, I think AWS DynamoDB will satisfy this requirement too.

    • @bowang1825
      @bowang1825 4 года назад +1

      are you from AWS :)

    • @harshavardhan9991
      @harshavardhan9991 4 года назад

      Bo Wang No, learning AWS :)

    • @NikhilAdiga
      @NikhilAdiga Месяц назад

      Can we use RDS instead of Aurora for a relational database?

  • @vidhanchandra3997
    @vidhanchandra3997 3 года назад +22

    This is one of the best explanation on choosing db....

  • @ramachandraneswaran
    @ramachandraneswaran 3 года назад +6

    As someone with only monolithic embedded systems experience, this is hands down the only resource on the internet that made sense to me in this domain. Heartfelt thanks!

  • @jyotibhatia9238
    @jyotibhatia9238 3 года назад +22

    Sandeep: I must say that you have the gift of explaining complex concepts in a very simple way, this is rare to find in today's days. Your clarity in explaining the fundas is great and makes me learn so much more. Please continue sharing your knowledge thereby helping learners across the globe! Thank you for sharing this and best of luck to you on this journey!

    • @codeKarle
      @codeKarle  3 года назад +2

      Thanks Jyoti! Do spread the word about the channel. It motivates to keep making more :)

  • @manveersingh5822
    @manveersingh5822 2 года назад +3

    I don't know why people are buying gold when by just watching this video you can be rich!
    Sincere gratitude to you Sandeep!

  • @RandomShowerThoughts
    @RandomShowerThoughts Год назад +1

    this video is an absolute gem. Finally someone that breaks this down directly without dancing around the topic

  • @Sailgodgreenearth
    @Sailgodgreenearth 2 года назад +1

    Best video I have watched which summarizes it so simply. The best part of this is he explains it by taking examples of products such as Amazon, Netflix etc.

  • @HarkiratSaluja
    @HarkiratSaluja 3 года назад +4

    Reading this a day before on-site interviews. I am much more confident on the database selection justification :). Thank you

  • @asishkumarsatapathy3466
    @asishkumarsatapathy3466 2 года назад +2

    Your videos are a life saver for me. I have recently joined an organisation as senior developer and i have been given few system design tasks. And going through your videos is enabling me to understand the intricacies of the system design.

  • @peterwofford1280
    @peterwofford1280 10 месяцев назад +2

    This man needs at least 100K subs. Love this content, extremely concise and informative, I have subbed!

  • @divakarkumaryadav327
    @divakarkumaryadav327 3 года назад +5

    No words to say..the way you've cleared everything.... You should be on RUclips long time before.

  • @rishianands8472
    @rishianands8472 2 года назад +1

    I like the way you present.. you look like a humble human being with lots of knowledge and work experience... please continue your good work..

  • @VedMishra
    @VedMishra 3 года назад +1

    Each minute is worth watching... Very logical and concise.

  • @akshayvarma7507
    @akshayvarma7507 3 года назад

    This channel should really have lot of subscribers. This is the first channel where I found so much detailed explanation on system design. Thanks a lot.

  • @learn9475
    @learn9475 2 года назад

    literally no words
    i was struggling to find a perfect video which explains in every possible perception (user, developer, maintainer)
    this made all the doubts cleared ...
    thank you

  • @divyanshusingh6473
    @divyanshusingh6473 3 года назад +11

    This was just what I needed, gem of a video. Thanks!

  • @weez8311
    @weez8311 3 года назад

    The clear explanation/flowchart at the end for choosing SQL vs document vs columnar was GOLD

  • @guptsha2nk
    @guptsha2nk 4 года назад +4

    To the point and crisp.... Covered all popular types of DB. Thanks

    • @codeKarle
      @codeKarle  4 года назад

      Glad that you liked it!

  • @gnanasekaranebinezar7199
    @gnanasekaranebinezar7199 3 года назад +10

    Wow !!! What clarity in explaining Database use cases, scenerios, categories of database with pictorial representation. The way you explained the concept is quite impressive. The way you corelate the concept with example is best fit. Keep the good work. May your light shine upon people like me the beneficiary. Thanks.

  • @niharika3608
    @niharika3608 2 года назад

    One of the best System Design videos series on RUclips. Keep up the good work!

  • @omishagupta1428
    @omishagupta1428 2 года назад +1

    Really informative. Loved it, coming out burnt from GKCS, that guy always leaves me confused for some reason. This channel is must recommended.

  • @Nexatek
    @Nexatek 3 года назад +2

    Awesome content dude. I ensure I watch all the ads during the video and click on all of them because I don't know how else I can give back to you for the invaluable knowledge you share with us!

    • @codeKarle
      @codeKarle  3 года назад

      Thanks Abhijit!
      Just spread the word about the channel amongst your friends / LinkedIn connections and that would be amazing :)

  • @jasper5016
    @jasper5016 2 года назад

    Brother, this is the best video I have ever seen on System Design (Databases). Thanks for sharing all this knowledge. Kudos to you!!

  • @psk2166
    @psk2166 4 месяца назад

    Thank you Karle, you have solved my mysterious about databases that has been going thru my head for many years.

  • @yassirhalim235
    @yassirhalim235 3 года назад +1

    What a very dense video! I took 3 pages of notes. The database world is much clearer for me. Thanks a lot!

    • @codeKarle
      @codeKarle  3 года назад

      Wow. That's good to hear!

  • @yuganderkrishansingh3733
    @yuganderkrishansingh3733 3 года назад +1

    Super helpful. More I watch it more clarity I get. Thanks for making this video.

  • @rajuhs3086
    @rajuhs3086 2 года назад

    Seedhi Baat.. No Bakwaas.. Excellent short cheat sheet video for choosing right DB.

  • @shashijais789
    @shashijais789 2 года назад

    Your videos are very simple to understand. I would like to thank you for explaining the FR and non-FR for each system design consideration. That sets the expectation very well.

  • @zachgoll
    @zachgoll 2 года назад

    Wonderful video! I have been looking for something in depth like this for a very long time!

  • @shellym5124
    @shellym5124 3 года назад +1

    Cool and crisp details relevant to the topic. Very few people are gifted with the skill to share the knowledge and also create an impact. I came across this channel and now I'll be watching the whole series in coming days.

  • @staycuriousstayawesome
    @staycuriousstayawesome 6 месяцев назад

    Oh my God! I didn't know this kind of content is also available on the net and that too is free with so many details explained beautifully and concisely. Subscribed and gonna share it with others. Thanks again for putting so much effort for the learners like us.

  • @monishchhadwa777
    @monishchhadwa777 7 месяцев назад

    Thank you so much for such a precise cheat sheet. You also cleared a lot of concepts for me which were fuzzy in spite of my 8.6 years of work experience!

  • @dikshantmalik544
    @dikshantmalik544 2 года назад

    I had been struggling with starting Databases to build my conceptual knowledge and this is amazing for everyone. Thanks a lot for sharing this in the most simplistic way.

  • @yashpalgandhi4108
    @yashpalgandhi4108 3 года назад

    Every video i watch, I click like. Complex system design problems are explained in very simple way. Keep it up and make more such videos. Thanks a lot!

  • @shivangitomar5557
    @shivangitomar5557 2 года назад

    Your videos are pure gold!! Hands down the best system design tutor!!! Thanks a lot!

  • @mykytapiskarov7291
    @mykytapiskarov7291 8 месяцев назад

    Good explanation of document DB, you are the first who made me understand the use case!

  • @TheSridharraj
    @TheSridharraj 2 года назад

    I was happy after going through the video. Just one short and clear.

  • @chiragarora7364
    @chiragarora7364 4 года назад +7

    Teaching is very diff from preaching!
    And Sir, you have cleary stated the difference.
    Making someone learn is easy, but making someone understand is what teaching is 👍
    Hoping that your vedios will make a difference 😃

    • @codeKarle
      @codeKarle  4 года назад +1

      Thanks!! That's very good to hear :)
      Hopefully it'll make a difference and reach a lot of people :)

    • @divyanshusingh6473
      @divyanshusingh6473 3 года назад

      @@codeKarle It is making a difference. Dope stuff!

  • @rameshn6721
    @rameshn6721 2 года назад

    Amazing explanation of various databases at a breadth. Candid for quick brush up. Thanks

  • @rutwickgangurde3247
    @rutwickgangurde3247 2 года назад

    This is a very good video, something no one has done. So many terms I hear on a day to day basis but didn't know, are clear now.

  • @sarojcs3535
    @sarojcs3535 Год назад

    You have just fulfilled my all queries for interviews.

  • @nehahp477
    @nehahp477 3 года назад +8

    Wow! This explanation is so lucid and logical, yet concise. Summarizing things this well should be considered an art form!

  • @MrManjax
    @MrManjax 2 года назад

    Excellent video talking about key considerations in choosing the "right" DB/ data store. Sincere thanks for your efforts!

  • @Muetsii
    @Muetsii 3 года назад

    OMG, I didn't know shit about no-SQL and just with this video I think I can propose the adequate database type in an exercise. Amazing, specially loved the way to combine databases.
    Thank you so much.

  • @priyanshusingh2454
    @priyanshusingh2454 3 года назад

    Really amazing playlist. I wonder why you don't have subscribers in lakhs. I have a final interview for SDE-I at a unicorn startup in 4 days and this is a life saver.

  • @sushmareddy1370
    @sushmareddy1370 10 месяцев назад

    This is awesome, I am amazed that everything you share has so much detail and thought.

  • @vennyroxz
    @vennyroxz 4 года назад +2

    Clear and to the point explanation. Great job! I learned a lot. Thanks.

    • @codeKarle
      @codeKarle  4 года назад

      Glad that it was helpful!

  • @dumbcurious450
    @dumbcurious450 3 года назад

    You are very clear about the content .. one of the best system design video available on RUclips..

  • @vishalamle8330
    @vishalamle8330 2 года назад

    Perfect cheet sheet for most of the DB formats..!!!
    So beautiful and simple explanation..!!! 👏👏
    Please keep up the great work..!!!

  • @zumazumy2257
    @zumazumy2257 Месяц назад

    One of the best videos ever in this topic
    Thanks

  • @shikharsharma6399
    @shikharsharma6399 Год назад

    The intro part in which you used the explanation of functional and non-functional requirements made me like the video and comment here.

  • @nghiapham7238
    @nghiapham7238 2 года назад

    awesome, the video gets to the heart of the matter and doesn't go around.

  • @vazzdoin
    @vazzdoin Год назад

    Keep doing the excellent work mate. This was a great video with respect to databases.

  • @aryanchauhan6671
    @aryanchauhan6671 Год назад

    Bro, this is just soooo good. You summarised so many important topics of software development concisely in some minutes with awesome explanation. Hats off to you. first time watching your video and i have become a fan. Thanks for the great content!

  • @manojbgm
    @manojbgm 3 года назад

    I have been looking for this information since long time.
    Thank you for providing the exact detail

  • @abhinav8804
    @abhinav8804 Год назад

    What an amazing explanation for choosing databases. Kudos to you man.

  • @AnkitYadav-rf3uu
    @AnkitYadav-rf3uu 3 года назад +1

    Awesome !!
    That's exactly what we require in a DB design rounds , in more depth though , but this was a very good intro in that direction

  • @joyceawesome1705
    @joyceawesome1705 3 года назад

    Wonderful! The best free video for choosing database in system design interview. Thanks so much

  • @viralmehta2542
    @viralmehta2542 3 года назад

    this guys is best! simple explaination.. easy to digest

  • @gurumoorthysivakolunthu9878
    @gurumoorthysivakolunthu9878 Месяц назад

    Awesome Explanation... Thank you, Sir... This is ULTIMATE....

  • @sampathreddy024
    @sampathreddy024 3 года назад

    I got lot of knowledge from this video and will watch all you videos in coming days

  • @allthingsnam
    @allthingsnam 6 месяцев назад

    Wow!! Amazing video with great content in a concise manner. Kudos, thank you so much!

  • @OffbeatTravelVK
    @OffbeatTravelVK 2 года назад

    I have a learnt a lot watching all your videos. Thank you so much sir 🙏🏼🙏🏼🙏🏼🙏🏼🙏🏼

  • @FunWiithAarohi
    @FunWiithAarohi 3 года назад

    I could binge watch your videos forever. such an informative videos

  • @harshavardhan9991
    @harshavardhan9991 4 года назад +1

    Not sure, what's your name is. you are doing good job. thank you !! Can you please cover following topics in your upcoming videos.
    1. Geo Databases. How application like tinder execute spatial queries. like people within 5 km.. ( I know bits and pieces not completely )
    2. How relational databases scale for banking websites. How they do sharding with example.. ( Not sure, whether I am asking too much or not. please )
    3. Regarding handling transactions in relational databases, Why banks take 5-7 days time if the transaction fails after deducting money from my account. why they don't rollback immediately... ( Not sure, whether it is a great question or not.. Please )
    4. Calculating Fanstasy Rank in RealTime. ( How Dream11 calculates Fantasy Rank in realtime.. I have read and watched some AWS videos on Dream 11.. They use Amazon EMR services. If you could provide a detailed video it would be great !! )
    Thank you and sorry for asking too many questions !

    • @codeKarle
      @codeKarle  4 года назад +1

      Sure, we'll try to cover some of this in the future videos. Feel free to give more ideas :)

    • @harshavardhan9991
      @harshavardhan9991 4 года назад

      @@codeKarle Thank you !! Looking forward for the same !!

    • @amitk6701
      @amitk6701 4 года назад +1

      Elastic Search (and MongoDB also!) has good support for Geo spatial data processing. You can check the latest documents of either.
      The usually given example of banking for ACID (primarily for Atomicity) is very much wrong, as banking systems are connected via much sophisticated systems (usually SWIFT based) which has quite a few checks in place for transactions.

  • @semperfiArs
    @semperfiArs 2 года назад

    Thanks a lot for these videos. Big fan of such videos. Make sure you post more videos. Keep up your good work guys

  • @pkr619
    @pkr619 3 года назад

    Amazing video, one feedback, please keep it at the top of the series, before the beginning of the design discussion of other systems.

  • @rakeshgupta8901
    @rakeshgupta8901 3 года назад

    I was searching your Medium blog post for some good detailed explanation, I can say , one of best explanation so for, I am going with watch all of video.

  • @PradeepSingh-vm1gl
    @PradeepSingh-vm1gl 3 года назад

    Love you brother. This video is so much informative. 1 video talks about so many solutions.

  • @gautamtyagi8846
    @gautamtyagi8846 3 года назад +1

    THANKS A TON for making things amazingly simple to understand. Great stuff indeed! I have watched all your videos on system design, they are so nicely presented and organised. Awaiting the next videos.

  • @akshayagrawal2222
    @akshayagrawal2222 3 года назад

    one stop explanation on choosing database, well done 👏

  • @rajukamal
    @rajukamal 2 года назад

    Best content on this topic! Thank you so much for your efforts!

  • @lahotiashish
    @lahotiashish 4 года назад +2

    Nice summary to tackle with system design interviews

  • @joelcruz2873
    @joelcruz2873 3 года назад

    I'm only 4 minutes in and I've already learned a lot! Keep it up!

  • @subhamshaw1726
    @subhamshaw1726 2 года назад

    awesome video. gives a bigger picture on dbs to me. very useful. thank you

  • @pathakutkarsh05
    @pathakutkarsh05 3 года назад

    Just wow! You made such a concise video for such useful information. Thanks a lot.

  • @hemantyadav5034
    @hemantyadav5034 3 года назад

    Really an awesome video. After seeing your one design video, I am on system design spree as if I want to finish the Netflix series. Every sentence you speak make to note it down in my notes. Thanks for all of it.
    One last thing, please whenever you time, keep the momentum of your system design input through videos.

  • @AliRaza-vt3pl
    @AliRaza-vt3pl Год назад

    Bro the way you explain is just Amazing ... Speechless
    Thanks for making it easy to understand

  • @taikunliu3441
    @taikunliu3441 4 года назад +1

    Very good summary. Concise and in-depth! thanks..

    • @codeKarle
      @codeKarle  4 года назад

      Thanks!! Glad that you liked it :)

  • @GauravDG1990
    @GauravDG1990 25 дней назад

    Great content brother! Keep spreading knowledge

  • @adishjain7351
    @adishjain7351 3 года назад +1

    Amazing Video. This is an absolute precise explanation for this topic. Thanks !!

  • @iminsane7777
    @iminsane7777 3 года назад

    Great Video!
    CAP Considerations:
    Need Availability and Consistency? MySQL+
    Need Availability and Partition-Tolerance? Cassandra+
    Need Consistency and Partition-Tolerance? MongoDB+

    • @manokumar89
      @manokumar89 2 года назад

      Hi, can you please give more details on why these choices for each cases?

  • @somghos4363
    @somghos4363 Год назад

    Great explanation. One more point to add is also CAP therom need to be consider to choose the DB.

  • @peterm8461
    @peterm8461 2 года назад

    This is a super valuable video. It's beautiful. Thank you Karle.

  • @vinagnihotri
    @vinagnihotri 2 года назад

    This is a perfect learning video, thank you. I found it very useful how you associated real world examples with type of db. Info about use of combination of database is also lot of helpful understanding how real world system might be using them.

  • @emonmukherjee
    @emonmukherjee 2 года назад

    I have always wished for a video like this! Since, I am non-CS background, I am a bit oblivious to the world of DB products out there. I had always heard many of these names, but only as lingo - never really understood why they were being mentioned in the context. Thank you for putting this together, I will now probably understand more future such discussions in life :D

  • @TheCALMInstitute
    @TheCALMInstitute 2 года назад

    Thanks for your help with my interview prep!

  • @PokriPoki
    @PokriPoki 4 года назад +1

    Hi Karl - great job with these videos! Keep uo the good work

  • @sathyapj5290
    @sathyapj5290 2 года назад

    Great video. Helped me to understand data platform at a high-level. Thank you Sandeep.

  • @kmurali08
    @kmurali08 3 года назад

    Excellent video with precise information. Kudos and keep them coming. 🙏🏼🙏🏼

  • @arjunadityarastogi2118
    @arjunadityarastogi2118 2 года назад

    I had a lot of confusions on this, Thank You So Much!

  • @rvs99
    @rvs99 Год назад

    All things explained straight and to the point. Hats off to you sir🕴🏻

  • @mostinho7
    @mostinho7 Год назад +1

    Taking note of new info:
    6:05 implementing text search feature, can use implementations provided by lucene, solar (TODO:- investigate these technologies)
    Elastic search is not a db, it’s a search engine so don’t use it as your primary source of truth
    Storing application metrics, throughput latency etc would use time series db. Useful when you’re doing sequential updates (appending metrics) instead of modifying existing records (kind of like a log) examples of time series db: InfluxDB, openTSdb

  • @armantavakoli7926
    @armantavakoli7926 3 месяца назад

    Thanks for making this review! I enjoyed it.