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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ค. 2024
  • One of the most important things in a System Design interview is to choose the right Database for the right use case. Here is a cheat sheet that can help you choose the right DB for most of the use cases that you can encounter.
    Summary of the video: www.codekarle.com/system-desi...
    Author: / sandeep1904
    We do over some important topics like which database you should use, in what scenarios, in a System Design Interview. Some comparisons between SQL and NoSQL databases, how to use multiple databases together in a real-world system, etc.
    Chapters
    0:00 - Intro
    1:05 - Things that matter
    1:45 - Caching
    3:20 - File storage
    4:22 - CDN
    5:11 - Text search engine
    6:30 - Fuzzy text search
    8:25 - Timeseries databases
    10:11 - Data warehouse / Big Data
    11:17 - SQL vs NoSQL
    11:24 - Relational DB
    14:28 - NoSQL - Document DB
    16:28 - NoSQL - Columnar DB
    18:23 - If none of these are required
    19:03 - Combination of DBs - Amazon case study.
    #codekarle #databases #systemdesign #system #design #interview #amazon #faang

ความคิดเห็น • 507

  • @MohitKumar-os3ir
    @MohitKumar-os3ir 3 ปีที่แล้ว +277

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

    • @codeKarle
      @codeKarle  3 ปีที่แล้ว +21

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

    • @parimi001
      @parimi001 2 ปีที่แล้ว +1

      I agree with you 100%

    • @SaiTeja-ir7yv
      @SaiTeja-ir7yv ปีที่แล้ว

      Ture !!

    • @mohammedsardar3779
      @mohammedsardar3779 11 หลายเดือนก่อน

      Why no design videos these days?? What happend?

  • @harshalchaudhari8137
    @harshalchaudhari8137 ปีที่แล้ว +81

    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.

  • @manveersingh5822
    @manveersingh5822 2 ปีที่แล้ว +2

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

  • @dikshantmalik544
    @dikshantmalik544 ปีที่แล้ว

    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.

  • @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.

  • @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.

  • @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.

  • @vidhanchandra3997
    @vidhanchandra3997 3 ปีที่แล้ว +21

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

  • @divakarkumaryadav327
    @divakarkumaryadav327 3 ปีที่แล้ว +5

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

  • @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

  • @ramachandraneswaran
    @ramachandraneswaran 2 ปีที่แล้ว +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!

  • @weez8311
    @weez8311 3 ปีที่แล้ว

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

  • @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.

  • @RandomShowerThoughts
    @RandomShowerThoughts ปีที่แล้ว +1

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

  • @peterwofford1280
    @peterwofford1280 5 หลายเดือนก่อน +2

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

  • @HarkiratSaluja
    @HarkiratSaluja 2 ปีที่แล้ว +4

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

  • @krishnabirla16
    @krishnabirla16 2 ปีที่แล้ว +4

    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.

  • @divyanshusingh6473
    @divyanshusingh6473 3 ปีที่แล้ว +11

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

  • @RiteshSingh-uz2qs
    @RiteshSingh-uz2qs ปีที่แล้ว +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.

  • @psk2166
    @psk2166 5 วันที่ผ่านมา

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

  • @progfan234
    @progfan234 2 ปีที่แล้ว +11

    Thanks for the video. It's worth stressing on is the consistency aspect of databases. RDBMS's provide strong consistency, whereas a NoSQL like Casandra provides eventual consistency, but higher availability owing to its masterless model, and thus lack of a single point of failure. HBase, on the other hand, is a single-leader system with a single-point of failure.

  • @niharika3608
    @niharika3608 2 ปีที่แล้ว

    One of the best System Design videos series on TH-cam. Keep up the good work!

  • @TheDeepsz
    @TheDeepsz 2 ปีที่แล้ว

    Such an amazing video! I am glad I came across your channel. This is very informative and you have a knack for explaining things well! Keep up the good work :)

  • @MrManjax
    @MrManjax 2 ปีที่แล้ว

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

  • @asishkumarsatapathy3466
    @asishkumarsatapathy3466 ปีที่แล้ว +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.

  • @learn9475
    @learn9475 ปีที่แล้ว

    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

  • @deepakmawane4251
    @deepakmawane4251 ปีที่แล้ว

    This is the best video on this topic on TH-cam. This is a confusing topic but you explained in so simple and elegant way. Thankyou! for making this video.

  • @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

  • @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!!

  • @shivangitomar5557
    @shivangitomar5557 2 ปีที่แล้ว

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

  • @aryanchauhan6671
    @aryanchauhan6671 10 หลายเดือนก่อน

    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!

  • @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.

  • @VedMishra
    @VedMishra 2 ปีที่แล้ว +1

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

  • @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!

  • @rameshn6721
    @rameshn6721 ปีที่แล้ว

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

  • @vishalamle8330
    @vishalamle8330 2 ปีที่แล้ว

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

  • @manojbgm
    @manojbgm 2 ปีที่แล้ว

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

  • @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..

  • @amandabarton938
    @amandabarton938 ปีที่แล้ว +27

    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!!

    • @marin1419
      @marin1419 7 หลายเดือนก่อน

      He's amazing

  • @ayushgupta5587
    @ayushgupta5587 2 ปีที่แล้ว

    Well explained and informative. works well as a cheat sheet with clear overview, leaving to us to get in depth wherever needed.

  • @shwetakale246
    @shwetakale246 2 ปีที่แล้ว

    This video is exactly what I wanted for quick revision. Thank you so much

  • @joyceawesome1705
    @joyceawesome1705 2 ปีที่แล้ว

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

  • @yuganderkrishansingh3733
    @yuganderkrishansingh3733 3 ปีที่แล้ว +1

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

  • @vazzdoin
    @vazzdoin 10 หลายเดือนก่อน

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

  • @abhinav8804
    @abhinav8804 ปีที่แล้ว

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

  • @ravijagtap1984
    @ravijagtap1984 3 ปีที่แล้ว

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

  • @pankajjain
    @pankajjain 3 ปีที่แล้ว

    You have great communication ability and explain things crisply. Thank you.

  • @monishchhadwa777
    @monishchhadwa777 3 หลายเดือนก่อน

    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!

  • @hemantyadav5034
    @hemantyadav5034 2 ปีที่แล้ว

    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.

  • @aparajitasengupta5558
    @aparajitasengupta5558 3 ปีที่แล้ว

    thank you ! This video cleared up so many concepts for me. Keep making these amazing videos

  • @sushmareddy1370
    @sushmareddy1370 6 หลายเดือนก่อน

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

  • @nehahp477
    @nehahp477 3 ปีที่แล้ว +8

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

  • @adishjain7351
    @adishjain7351 3 ปีที่แล้ว +1

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

  • @staycuriousstayawesome
    @staycuriousstayawesome หลายเดือนก่อน

    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.

  • @sarojcs3535
    @sarojcs3535 ปีที่แล้ว

    You have just fulfilled my all queries for interviews.

  • @joelcruz2873
    @joelcruz2873 2 ปีที่แล้ว

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

  • @mykytapiskarov7291
    @mykytapiskarov7291 3 หลายเดือนก่อน

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

  • @nshettys
    @nshettys 3 ปีที่แล้ว

    As usual, you are just brilliant!!! Fantastic

  • @rajuhs3086
    @rajuhs3086 2 ปีที่แล้ว

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

  • @arjunadityarastogi2118
    @arjunadityarastogi2118 ปีที่แล้ว

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

  • @PradeepSingh-vm1gl
    @PradeepSingh-vm1gl 3 ปีที่แล้ว

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

  • @TheSridharraj
    @TheSridharraj 2 ปีที่แล้ว

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

  • @TheCALMInstitute
    @TheCALMInstitute ปีที่แล้ว

    Thanks for your help with my interview prep!

  • @YashRaithatha1989
    @YashRaithatha1989 3 ปีที่แล้ว +53

    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 ปีที่แล้ว

      @@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

  • @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.

  • @GauravSharma-rx7pl
    @GauravSharma-rx7pl 3 ปีที่แล้ว

    This is gem!! Thanks for such amazing content.

  • @vinagnihotri
    @vinagnihotri ปีที่แล้ว

    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.

  • @zachgoll
    @zachgoll ปีที่แล้ว

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

  • @madhumantichakraborty6579
    @madhumantichakraborty6579 3 ปีที่แล้ว +9

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

    • @codeKarle
      @codeKarle  3 ปีที่แล้ว

      Thanks for the kind words :)

  • @guptsha2nk
    @guptsha2nk 3 ปีที่แล้ว +4

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

    • @codeKarle
      @codeKarle  3 ปีที่แล้ว

      Glad that you liked it!

  • @rrrrr16able
    @rrrrr16able 2 ปีที่แล้ว +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  2 ปีที่แล้ว

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

  • @pathakutkarsh05
    @pathakutkarsh05 2 ปีที่แล้ว

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

  • @akshayagrawal2222
    @akshayagrawal2222 2 ปีที่แล้ว

    one stop explanation on choosing database, well done 👏

  • @pratikjain4704
    @pratikjain4704 3 ปีที่แล้ว

    This is very good, please keep adding more interviews.

  • @jyotibhatia9238
    @jyotibhatia9238 3 ปีที่แล้ว +21

    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 ปีที่แล้ว +1

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

  • @TheCALMInstitute
    @TheCALMInstitute ปีที่แล้ว

    Great refresher, thank you!

  • @nghiapham7238
    @nghiapham7238 2 ปีที่แล้ว

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

  • @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

  • @chillbro2275
    @chillbro2275 ปีที่แล้ว

    Eye opening. And you introduced me to time sequence databases. Thank you so very much. I would like to know about HBase at a beginner level.

  • @viralmehta2542
    @viralmehta2542 2 ปีที่แล้ว

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

  • @swarnimshukla1120
    @swarnimshukla1120 ปีที่แล้ว

    You explained everything in a very concise way. Keep up doing the good work😊🙏

  • @rajukamal
    @rajukamal ปีที่แล้ว

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

  • @coolvipool
    @coolvipool 3 ปีที่แล้ว

    Great content. Gave me so many decision making capabilities. Please keep posting such good contents.

  • @allthingsnam
    @allthingsnam หลายเดือนก่อน

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

  • @user-vq6yi7se2r
    @user-vq6yi7se2r 3 ปีที่แล้ว

    Great Man! Nice way of explaining. Kudos to your thoughts!

  • @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.

  • @Muetsii
    @Muetsii 2 ปีที่แล้ว

    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 2 ปีที่แล้ว

    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.

  • @kmurali08
    @kmurali08 2 ปีที่แล้ว

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

  • @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.

  • @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.

  • @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!

  • @zhakunigor
    @zhakunigor 2 ปีที่แล้ว

    great summary of DB before interview

  • @PokriPoki
    @PokriPoki 3 ปีที่แล้ว +1

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

  • @nitinbatra5255
    @nitinbatra5255 2 ปีที่แล้ว

    Great refreshing experience. Thank you for sharing your learning.

  • @namooman6447
    @namooman6447 3 ปีที่แล้ว

    Amazing stuff Sandeep. Thanks a ton !!!

  • @anisinnarkar8717
    @anisinnarkar8717 ปีที่แล้ว

    Excellent video on DB choices, nicely done.

  • @rvs99
    @rvs99 ปีที่แล้ว

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

  • @lokeshkashyap6939
    @lokeshkashyap6939 2 ปีที่แล้ว

    It's a good video to start preparing for System Design Interviews

  • @sampathreddy024
    @sampathreddy024 2 ปีที่แล้ว

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