Systems Design Interview Concepts (for software engineers / full-stack web)

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Please like the video. Ex-Google TechLead talks through core concepts for a systems design interview. Visit brilliant.org/TechLead/ to learn math, science, and computer science with new interactive courses, and get 20% off premium.
    I cover the systems design interview in more detail in my program Tech Interview Pro ( techinterviewpro.com/ ) if you are interested in learning more. We also do bi-weekly Live Q&As so have a look.
    In this video, we discuss load balancing, CDNs, database replication, sharding, caching layers, database schema and indexes, distributed filesystems, and other ways to scale an application. You don't want to scale your design too early or needlessly, but consider where the bottlenecks are. Sometimes you will need database sharding for instance, while other times you may not need a database at all (ie., if the data does not need to persist to disk). Note: the concepts will differ somewhat for a frontend or mobile systems design, which are more focused on the client-side architecture and software design patterns.
    Join me in DeFi Pro and make passive income with crypto. defipro.dev/
    Join ex-Google/ex-Facebook engineers for my coding interview training: techinterviewpro.com/
    💻 100+ Videos of programming interview problems explained: coderpro.com/
    📷 Learn how to build a $1,000,000+ business on RUclips: youtubebackstage.com/
    💻 Sign up for my FREE daily coding interview practice: dailyinterviewpro.com/
    🛒 All my computer/camera gear: www.amazon.com/shop/techlead/...
    ⌨️ My favorite keyboards: iqunix.store/techlead
    🎉 Party up:
    / techleadhd
    / techleadhd
    Disclosure: Some links are affiliate links to products. I may receive a small commission for purchases made through these links.
    #techlead

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

  • @TechLead
    @TechLead  4 года назад +279

    Please "like" the video to support my technical content, and I will be happy to make more for you 👍 I'll do one for mobile systems design if we can hit 5,000 likes.

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

      can you do a vid on chainlink or decentralized oracles or at least how to use blockchains for regular apps

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

      TechLead hopefully we’ll get there because these videos are so interesting

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

      tech lead, could you tell us where to systematically study “system design”?

    • @user-tq9do5ss7j
      @user-tq9do5ss7j 4 года назад +3

      please do more , you know most of your audience are nerds which means we are emotionally disabled most of us don't put likes but in reality we love your content and we always comeback .
      so please do more even if we did not reach the 5000 .
      when i hear a guy like you i feel it is the perfect way to check mh skills and way of thinking .

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

      Don't buy too early. There's gonna be a 70% off fire sale. Be patient guys

  • @vivib3678
    @vivib3678 4 года назад +195

    1. Load-balancing 1:31
    2. Caching 2:39
    3. Database schema design 4:50
    4. Slave-master replications
    5. Database sharding 7:10
    6. NoSQL 8:43
    7. API design 9:27

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

      Helpful 🙏🏻

  • @andrewdnistriansky3719
    @andrewdnistriansky3719 4 года назад +454

    1. Load-balancing
    2. Caching
    3. Database schema design
    4. Slave-master replications
    5. Database sharding
    6. API design

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

      @@manojgt8660 is it simple way to get or there are lot of water?

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

      @@cinderellarouge Sorry I'm not able to understand your question. Can you be more clear?

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

      @@manojgt8660 "a lot of water" that means 20% useful information and other is trush ..

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

      @@cinderellarouge I would say 10%. This video is good for talking with others on system design. But not good for interview preparation.

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

      @@manojgt8660 No, I'm about your recommended book.

  • @waruwaruwaru
    @waruwaruwaru 4 года назад +107

    This is probably my favorite video from TechLead so far.

  • @ScumbagKonflict
    @ScumbagKonflict 4 года назад +201

    Tech Lead effortlessly demonstrating why he's the Tech Lead. High quality content.

  • @justinv3512
    @justinv3512 4 года назад +478

    The TechLead ran out of trolling/sarcastic video ideas, so The TechLead actually put out useful content that he learned from being an Ex-Google, Ex-Facebook Engineer (as a Millionaire).

    • @boranshao
      @boranshao 4 года назад +20

      Hard truth is, TechLead is not that good at these useful tech contents, compared to other top tech vloggers on RUclips. What he does best is trolling/sarcasm/reality-show kinds of videos.

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

      @@boranshao Can you name a few?

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

      Boran Shao Yes can you name a few?

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

      @@boranshao Which other top tech vloggers?

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

      (as single)

  • @cam41527
    @cam41527 4 года назад +6

    This is like one of the old Tech Lead videos that got me to subscribe in the first place! I love these type of technical topics, keep them coming! :D

  • @TheSvs1
    @TheSvs1 4 года назад +102

    Those types of videos proves that he is the Real Tech Lead (as a millionaire and an ex Google & Facebook);

    • @TechLead
      @TechLead  4 года назад +34

      yeah or you could just ask my friends over in HR, they'll confirm that for you. HR's the best, what's not to like? (except for the part about firing me of course, but that's a minor detail).

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

      333jas I think because he opened a youtube channel

    • @TechLead
      @TechLead  4 года назад +8

      333jas i thought i made a whole video on this.

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

      Every intern at Google knows this, it's basics.

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

      Kirill I He worked on Facebook, not Google.

  • @techbizlife
    @techbizlife 3 года назад +17

    1:07,load balancing
    2:08,dns load balancing
    2:50,caching
    3:30:cdn
    5:00, database
    6:30,scaling,
    8:43, no sql,mongodb,firebase
    9:28,api

  • @bin4ry_d3struct0r
    @bin4ry_d3struct0r 4 года назад +28

    This is definitely one of the more useful vids for techies on this channel. This guy isn't just boasting about being a tech lead. He really is the TechLead.

  • @jamesshen401
    @jamesshen401 4 года назад +8

    This is the first great video that I've loved from Techlead in a while! (Fan since season 1). While life lessons are great, most of your audience may not be in their late 30s/40s, thus not nearly as engaging. These design videos are great, because you explain key terms (CDN/Sharding) in layman's term. The structure is also great Webserver load balancing, into CDN, then into sharding databases. The tables/diagrams worked great too. As a suggestion, I think small code snippets would improve the video even further. I find watching you code entire projects to be hard to follow. We can work out the details ourselves, but code snippets/concepts are great for the youtube format. GJ!

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

    This is the reason why I started following TechLead a year ago, , thanks for bringing it back. Love your explanation alot!

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

    Still one of the best and most concise explanation of key system design concepts on RUclips!

  • @sasamilic720
    @sasamilic720 3 года назад +3

    props for covering this all in 11 minutes

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

    I don't even know the least bit about computer science or IT. I just love to listen to the Tech Lead.

  • @akai2112123
    @akai2112123 4 года назад +6

    The database replication with slave and master and sharding! splitting the tables vertically and horizontally blew my mind like wow ! ps: I am just 2 years into dev so I found all of these concepts very intriguing and exciting!

  • @ByteMock
    @ByteMock 4 года назад +8

    System Design questions are challenging to prep for. It is a great way to show off your problem-solving ability and personality when compared to whiteboard questions.

  • @aristideregal
    @aristideregal 4 года назад +84

    The guy knows what he is talking about. He is the goddamn Tech Lead!

    • @TechLead
      @TechLead  4 года назад +42

      Funny thing is, this isn't even what I did at FANG. I did mobile development there.

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

      @@TechLead you were overqualified!

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

      @@paulfunigga LOL

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

      @@TechLead this is more for the distributed system back end side. Did you use to work in back end in the past ?

    • @javier.alvarez764
      @javier.alvarez764 4 года назад

      He is also a Fullstack web developer.

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

    this is one of the best videos he's put out

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

    In Boot Camp and a relative suggested I review this video. Very much appreciated.

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

    I can't believe this video exists. This man will singlehandedly helped me and others land a job even 5-10 years from now. I have no experience about scalability because my projects have never needed that much, but now I can atleast understand some terminology that would help a lot in system design interviews.

  • @willdedill
    @willdedill 3 года назад +3

    The BEST TechLead video I ever watched hands down, you see he didn’t mention a single second that he’s an ex-Google ex-Facebook whatever, nor talking about his wife.
    Straight to the point, thank yoi for breaking this concept to us 😅

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

    Please continue with the technical topics, enjoying them so far

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

    You have everything in such an easy and understandable way. Thank you for such great content 😊😊

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

    Transitions between topics is seamless, awesome!

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

    Great video. I am almost done with my intern as a software engineer

  • @chiting765
    @chiting765 3 года назад +15

    I learnt some of these concepts when learning about AWS and seems like AWS have made many things easy like auto scaling, load balancing, caching, data replica etc. I wonder how people do things before AWS.

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

      They are still doing medium to large enterprise has there own datacenter and all government offices

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

    This is my favorite episode of coffee time with TTL

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

    Nice video! I'm interviewing right now as a sophomore in college and recently failed a systems design interview challenge pretty badly - this definitely covers most of what I should have known.

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

      nice, glad this might help next round!

  • @zaidpasha5611
    @zaidpasha5611 4 года назад +6

    Really appreciate the technical content!

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

    You explain things so well. Thanks for this.

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

    I can not pass a single day without watching the videos of TechLead.

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

    LOVE this video! I'll share it with my community with their TPM and Engineering questions!

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

    Techlead, this is the time that you are showing us how much power you have. Holy shit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I think even my university professors cannot even compete with you.

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

    These technical videos are great! Looking forward to more of these. You should also do podcasts or on Audible so that it's easier to listen when traveling..

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

    This is the TechLead most people respect and cannot beat!

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

    Great video! Liked the clarity, simplicity and structure of the video. The concepts explained are very useful.

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

    What a great short explanation. You are one of the best developer and human. Thanks.

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

    Very high quality content in few min, which takes years to learn

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

    Thank you for this video! It was super concise, easy to understand, and overall a very good intro to a lot of these concepts.

  • @mr.unknown4124
    @mr.unknown4124 Месяц назад

    Eleven minutes of Wisdom. Thank you so much.

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

    Although I like your "as a millionaire" videos, technical videos are much better. Thanks for this video.

  • @peterthedecent
    @peterthedecent 3 года назад +25

    first time I ever put playback speed below 1x lmao

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

      Yes I checked the speed if I was on fast mode

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

    TechLead has the best content...He is the Master.. Respect the Master 🙏

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

    Great video, studying load balancer & CDN recently

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

    Seriously great explanation and examples. That was super helpful!

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

    This type of content is the best

  • @kunalsethi7192
    @kunalsethi7192 4 года назад +6

    Techlead is the type of guy who tests his code after deploying it to production 🙌

    • @TechLead
      @TechLead  4 года назад +38

      kunal sethi eh i never make coding mistakes anyways. if i do i fix the compiler.

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

      @@TechLead Respect 🙌😂

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

      @@TechLead Kindly fix the Javascript.

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

    Great video! Have you ever had to do horizontal or vertical sharding for your personal projects? At what scale more or less does this become a problem?

    • @TechLead
      @TechLead  4 года назад +17

      It totally varies on load and how heavy you're hitting the database. I typically wouldn't worry about it until I'm getting like 300K daily active users before sharding though... I've done both vertical and horizontal sharding but it often is easier to just pay for more RAM and keep things simple.

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

    Love these kind of videos where he shares he's tech knowledge. More of the same please.

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

    This is gold. Can you do another technical video about the tools/services in order to implement the scaling techniques you discussed on the vid? Also, I would be happy to purchase from an affiliate link pointing to books/resources about the topic discussed. Thanks!

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

    Great quick watch video before a System Design interview.

  • @BMartinsGamingExpo
    @BMartinsGamingExpo 4 года назад +27

    Respect the techlead. Techlead is life.

    • @TechLead
      @TechLead  4 года назад +21

      It's true. I'm your father.

  • @Jn-kh8qy
    @Jn-kh8qy 4 года назад +1

    Thank you Tech lead! For all your videos

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

    More of System Design man.....this was very informative

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

    Make more with more deep explanation, example, use case. Please 🤩

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

    Thanks Sir its really very very helpful , In 10 mins you covered all important key points

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

    It was helpful to hear the concepts explained differently with a different perspective. This helped clarify some of my confusion. Thanks again!
    Too bad we never ran into each other when we were at UCSD. :)

  • @JettZheng
    @JettZheng 4 года назад +8

    It's Great! Tomorrow I will just use these concepts to pass the interview.

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

    really appreciate your work! very helpful video! The mobile system design is what I expect mostly. Hit already 1.2k and waiting for your new episode!

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

    Respect the TechLead. great video! so fast and on point. please make a video on system designs interview for sr. software engineers / software architect

  • @user-ge8fn4jr5q
    @user-ge8fn4jr5q 4 года назад +1

    Thanks, I learned a lot of new stuff.

  • @AhlamLamo
    @AhlamLamo 4 года назад +6

    The smartest and funniest and sarcastic Tech Engineer I have ever seen !!! 👍👍👍 keep going

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

    Thanks TechLead. Much appreciated.

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

    Incredibly helpful! Thank you!

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

    This is a very nice introduction.

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

    This is useful. When I hop I will definitely use this system design course!

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

    Thanks. Really needed this

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

    Just finished reverse proxy on another channel, and this shows up on my recommendation.

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

    What a nice overview! Awesome!

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

    To paraphrase: There are mainly 3 servers... the techniques to scale them are: Webservers (load balancing), Database servers (Caching, Indexing and Replications), Content Servers (Content Delivery Networks)
    for web... Load Balancing - To improve Throughput, Latency and Scalability - NGINX for enterprise, dns load balancing for basic cfg
    for caching db - Memcache, Redis, Cassandra.
    for caching img/vid/web files - CDN (Distributed File System e.g. Amazon S3)
    for db... Replication - Replicate data on multiple Slave DBs for "Read" only and Master for Read+Write
    Problem: Simultaneous DB Writes; Solution: Sharding (Horizontal sharding - Data from 1 table is split and each portion is maintained in different/multiple machines)
    NoSQL - Not Relational - Essentially key-value pairs - E.g. MongoDB, Amazon's Dynamo DB and FireBase' FireStore

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

    Like you, The Respected TechLead, my day starts with coffee ☕😋

    • @TechLead
      @TechLead  4 года назад +6

      Irresistible Tech you think this is actually coffee?

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

      @@TechLead yes. What is this?

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

    Really liked the content, hope i can afford this course one day 🙏🏻

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

    Like the video and respect the tech lead, thank you!

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

    Thank You, this is what i like from you not talking how awesome you are i can see that no need to say it cause this way it makes you more awesome.

  • @tenseikenzx-3559
    @tenseikenzx-3559 4 года назад +1

    What happens if the load balancing server goes down due to too much traffic? Could you have a hierarchy of load balancers? Or do they normally vertically scaled it to the point where that doesn't happen?

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

    Amazing video!! I have got an onsite interview with Facebook. They have given me 2 choices for Design interview. The first one is a high-level System Design, the second one is Back-end Generalist (API design). There are plenty of resources available for the first option. Are there any resources for API Design interviews?

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

    Im trying to understand "not being able to do range queries" (paraphrasing it) in nosql db. Mongo has range query; other db dont? Can someone explain more?

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

    Thank you even before watching!

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

    OMG they are so useful!! thank you!

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

    Excellent video and well put.

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

    you cannot love his style , you have to recngnize that the skills of techlead are far better than other tech youtubers

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

    Very informative video. Thanks for sharing. If possible please share your knowledge more on this Topic. Lots of video coming on youtube about Programming, technology but enterprise level architecture and technic to solve complex problems is not discussed frequently.

  • @user-oz7du4zq8c
    @user-oz7du4zq8c 4 года назад

    Such a helpful advice!💜

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

    Quite intense content, good

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

    Pure gold as always :) TechKing

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

    This is pure gold

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

    I actually stopped myself from watching this before I got my coffee

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

    Tech lead is back!

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

    Thank you! It's helpful. Do you have any tip for eng manager interviews?

  • @user-jy2ig3vw2s
    @user-jy2ig3vw2s 2 месяца назад +1

    Thanks! Amazing video.

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

    I love your videos!! Thank you

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

    Well explained in simple language.😀

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

    Please more technical videos!

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

    Every major software site I go to, when I click to download their content, it's always an Amazon S3 link. So is Amazon a one stop shop that can provide you with all of the techniques you cover here?

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

    finally tech lead you choose right topic
    thanks for making video
    keep it up

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

    Damn, so that’s why he’s the techlead. 🐐

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

    Wow explained it like a piece of cake ✔️

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

    Patrick certainly seems to be uploading quality content lately. I guess he is trying to make up for the algopro scandal. Great job!

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

    I would be more interested in Systems Design Interview Concepts as a millionaire. But you cant argue with TechLead.