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

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 9. 07. 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 CZcams: 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

Komentáƙe • 402

  • @TechLead
    @TechLead  Pƙed 4 lety +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 Pƙed 4 lety +2

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

    • @xcuu
      @xcuu Pƙed 4 lety +4

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

    • @songliu1781
      @songliu1781 Pƙed 4 lety

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

    • @user-tq9do5ss7j
      @user-tq9do5ss7j Pƙed 4 lety +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 Pƙed 4 lety +1

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

  • @waruwaruwaru
    @waruwaruwaru Pƙed 4 lety +108

    This is probably my favorite video from TechLead so far.

  • @vivib3678
    @vivib3678 Pƙed 4 lety +196

    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 Pƙed 3 lety

      Helpful đŸ™đŸ»

  • @andrewdnistriansky3719
    @andrewdnistriansky3719 Pƙed 4 lety +455

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

    • @cinderellarouge
      @cinderellarouge Pƙed 4 lety +1

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

    • @manojgt8660
      @manojgt8660 Pƙed 4 lety +1

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

    • @cinderellarouge
      @cinderellarouge Pƙed 4 lety +1

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

    • @manojgt8660
      @manojgt8660 Pƙed 4 lety

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

    • @cinderellarouge
      @cinderellarouge Pƙed 4 lety

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

  • @seriousbees
    @seriousbees Pƙed 2 lety +2

    Old Tech lead before his villain arc is actually pretty helpful

  • @ScumbagKonflict
    @ScumbagKonflict Pƙed 4 lety +201

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

  • @justinv3512
    @justinv3512 Pƙed 4 lety +480

    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 Pƙed 4 lety +20

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

    • @sarmastbilawalkhuhro1554
      @sarmastbilawalkhuhro1554 Pƙed 3 lety +5

      @@boranshao Can you name a few?

    • @yannisran7312
      @yannisran7312 Pƙed 3 lety +2

      Boran Shao Yes can you name a few?

    • @clodicious
      @clodicious Pƙed 3 lety +2

      @@boranshao Which other top tech vloggers?

    • @ivanleon6164
      @ivanleon6164 Pƙed 3 lety +1

      (as single)

  • @cam41527
    @cam41527 Pƙed 4 lety +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 Pƙed 4 lety +102

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

    • @TechLead
      @TechLead  Pƙed 4 lety +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 Pƙed 4 lety

      333jas I think because he opened a youtube channel

    • @TechLead
      @TechLead  Pƙed 4 lety +8

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

    • @MegaKiri11
      @MegaKiri11 Pƙed 4 lety +4

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

    • @davidbanda4727
      @davidbanda4727 Pƙed 4 lety

      Kirill I He worked on Facebook, not Google.

  • @icebox747
    @icebox747 Pƙed 4 lety +2

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

  • @jamesshen401
    @jamesshen401 Pƙed 4 lety +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!

  • @neerajkulkarni6506
    @neerajkulkarni6506 Pƙed 2 lety +2

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

  • @bin4ry_d3struct0r
    @bin4ry_d3struct0r Pƙed 4 lety +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.

  • @techbizlife
    @techbizlife Pƙed 3 lety +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

  • @ByteMock
    @ByteMock Pƙed 4 lety +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.

  • @akai2112123
    @akai2112123 Pƙed 4 lety +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!

  • @domibr4966
    @domibr4966 Pƙed 4 lety +2

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

  • @chevalier5691
    @chevalier5691 Pƙed 2 lety

    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.

  • @ruka6246
    @ruka6246 Pƙed 4 lety +3

    Please continue with the technical topics, enjoying them so far

  • @sasamilic720
    @sasamilic720 Pƙed 4 lety +3

    props for covering this all in 11 minutes

  • @aristideregal
    @aristideregal Pƙed 4 lety +84

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

    • @TechLead
      @TechLead  Pƙed 4 lety +42

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

    • @paulfunigga
      @paulfunigga Pƙed 4 lety +3

      @@TechLead you were overqualified!

    • @mohammadsamir2713
      @mohammadsamir2713 Pƙed 4 lety

      @@paulfunigga LOL

    • @vietnguyen4733
      @vietnguyen4733 Pƙed 4 lety

      @@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 Pƙed 4 lety

      He is also a Fullstack web developer.

  • @NicolaAmadio
    @NicolaAmadio Pƙed 4 lety +5

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

  • @willdedill
    @willdedill Pƙed 3 lety +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 😅

  • @zaidpasha5611
    @zaidpasha5611 Pƙed 4 lety +6

    Really appreciate the technical content!

  • @kajalkukreja694
    @kajalkukreja694 Pƙed 3 lety +5

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

  • @stevenmccarther5836
    @stevenmccarther5836 Pƙed 3 lety

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

  • @jordanepstein6228
    @jordanepstein6228 Pƙed 4 lety +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  Pƙed 4 lety +7

      nice, glad this might help next round!

  • @abhinavgupta1474
    @abhinavgupta1474 Pƙed 2 lety

    Transitions between topics is seamless, awesome!

  • @utistu87
    @utistu87 Pƙed 4 lety

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

  • @Somethingsomethinglol
    @Somethingsomethinglol Pƙed 3 lety +2

    You explain things so well. Thanks for this.

  • @mattmarkus4868
    @mattmarkus4868 Pƙed 4 lety +4

    This is my favorite episode of coffee time with TTL

  • @HollyLeeCoaching
    @HollyLeeCoaching Pƙed 3 lety

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

  • @ilovemusic465
    @ilovemusic465 Pƙed 4 lety +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..

  • @msg945
    @msg945 Pƙed 4 lety +4

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

  • @chiting765
    @chiting765 Pƙed 3 lety +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 Pƙed 3 lety +4

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

  • @ayelaii
    @ayelaii Pƙed 2 lety

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

  • @chrishan3883
    @chrishan3883 Pƙed 3 lety

    Seriously great explanation and examples. That was super helpful!

  • @itarukmakto
    @itarukmakto Pƙed 3 lety +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

  • @JDiculous1
    @JDiculous1 Pƙed 4 lety +2

    This type of content is the best

  • @byan6741
    @byan6741 Pƙed 4 lety

    This is the TechLead most people respect and cannot beat!

  • @jayhu6075
    @jayhu6075 Pƙed 4 lety

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

  • @kunxue9343
    @kunxue9343 Pƙed 4 lety

    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!

  • @occo5877
    @occo5877 Pƙed 3 lety

    What a nice overview! Awesome!

  • @user-oz7du4zq8c
    @user-oz7du4zq8c Pƙed 4 lety

    Such a helpful adviceïŒđŸ’œ

  • @fredwu6812
    @fredwu6812 Pƙed 4 lety +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.

  • @johncoleman6293
    @johncoleman6293 Pƙed 4 lety +1

    Thanks. Really needed this

  • @vausa1000
    @vausa1000 Pƙed 4 lety +1

    Thanks TechLead. Much appreciated.

  • @UnknownStuff0417
    @UnknownStuff0417 Pƙed 4 lety +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?

  • @metalalive2006
    @metalalive2006 Pƙed 4 lety

    Great video, studying load balancer & CDN recently

  • @anuragshukla4844
    @anuragshukla4844 Pƙed 4 lety +7

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

  • @tommyhqueen
    @tommyhqueen Pƙed 2 lety

    Incredibly helpful! Thank you!

  • @Jn-kh8qy
    @Jn-kh8qy Pƙed 4 lety +1

    Thank you Tech lead! For all your videos

  • @NooglerNafiz
    @NooglerNafiz Pƙed 2 lety

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

  • @winniethepooh5509
    @winniethepooh5509 Pƙed 2 lety

    OMG they are so useful!! thank you!

  • @user-ge8fn4jr5q
    @user-ge8fn4jr5q Pƙed 4 lety +1

    Thanks, I learned a lot of new stuff.

  • @MrRoops3
    @MrRoops3 Pƙed 4 lety +1

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

  • @DevenSitapara
    @DevenSitapara Pƙed 2 lety

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

  • @nicolebernard1768
    @nicolebernard1768 Pƙed 4 lety +1

    I love your videos!! Thank you

  • @bmujeeb
    @bmujeeb Pƙed 4 lety +1

    Excellent video and well put.

  • @BMartinsGamingExpo
    @BMartinsGamingExpo Pƙed 4 lety +27

    Respect the techlead. Techlead is life.

    • @TechLead
      @TechLead  Pƙed 4 lety +21

      It's true. I'm your father.

  • @DoctorLai
    @DoctorLai Pƙed 3 lety +1

    This is a very nice introduction.

  • @premkumareaswaran6875
    @premkumareaswaran6875 Pƙed 3 lety +1

    This is high quality stuff!!!

  • @kunalsethi7192
    @kunalsethi7192 Pƙed 4 lety +5

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

    • @TechLead
      @TechLead  Pƙed 4 lety +38

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

    • @kunalsethi7192
      @kunalsethi7192 Pƙed 4 lety

      @@TechLead Respect 🙌😂

    • @Prakhar281993
      @Prakhar281993 Pƙed 4 lety +1

      @@TechLead Kindly fix the Javascript.

  • @user-jy2ig3vw2s
    @user-jy2ig3vw2s Pƙed 3 měsĂ­ci +1

    Thanks! Amazing video.

  • @alexomar9168
    @alexomar9168 Pƙed 4 lety

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

  • @markettrader3180
    @markettrader3180 Pƙed 3 lety

    Quite intense content, good

  • @qwertyashish
    @qwertyashish Pƙed 4 lety +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

  • @rus19297
    @rus19297 Pƙed 3 lety

    This is pure gold

  • @mr.unknown4124
    @mr.unknown4124 Pƙed měsĂ­cem

    Eleven minutes of Wisdom. Thank you so much.

  • @berargumen2390
    @berargumen2390 Pƙed 4 lety +2

    Make more with more deep explanation, example, use case. Please đŸ€©

  • @tenseikenzx-3559
    @tenseikenzx-3559 Pƙed 4 lety +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?

  • @AhlamLamo
    @AhlamLamo Pƙed 4 lety +6

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

  • @jeromecaisip2642
    @jeromecaisip2642 Pƙed 4 lety +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!

  • @SajeelCodes
    @SajeelCodes Pƙed 4 lety +3

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

    • @TechLead
      @TechLead  Pƙed 4 lety +6

      Irresistible Tech you think this is actually coffee?

    • @SajeelCodes
      @SajeelCodes Pƙed 4 lety

      @@TechLead yes. What is this?

  • @austinkim8213
    @austinkim8213 Pƙed 2 lety

    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. :)

  • @samiahmadkhan2865
    @samiahmadkhan2865 Pƙed 2 lety

    Great quick watch video before a System Design interview.

  • @lamintouray7386
    @lamintouray7386 Pƙed 4 lety +1

    Tech lead is back!

  • @jeffreycuadros1685
    @jeffreycuadros1685 Pƙed 4 lety +1

    That was really nice, thanks man.

  • @BahawalTV
    @BahawalTV Pƙed 4 lety +1

    Good video techlead!

  • @sonofgod00
    @sonofgod00 Pƙed rokem

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

  • @Cube96s
    @Cube96s Pƙed 4 lety +2

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

  • @elinorkent7188
    @elinorkent7188 Pƙed 2 lety

    that was super helpful

  • @abderrahmanlahiaouni9172
    @abderrahmanlahiaouni9172 Pƙed 4 lety

    Thank you even before watching!

  • @bigshaqsmathematicalinstit3318

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

  • @nikcsm
    @nikcsm Pƙed 4 lety +1

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

  • @sunmki11
    @sunmki11 Pƙed 4 lety +1

    wow this is a really helpful video, thanks, :)

  • @ddomingo
    @ddomingo Pƙed 4 lety +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  Pƙed 4 lety +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.

  • @peterthedecent
    @peterthedecent Pƙed 3 lety +25

    first time I ever put playback speed below 1x lmao

    • @alrightymedia
      @alrightymedia Pƙed 3 lety

      Yes I checked the speed if I was on fast mode

  • @ALC_1
    @ALC_1 Pƙed 4 lety +1

    the best video in a while

  • @CraftPreneur
    @CraftPreneur Pƙed rokem

    Pure gold as always :) TechKing

  • @prakarshshrivastava6422
    @prakarshshrivastava6422 Pƙed 3 lety

    Really liked the content, hope i can afford this course one day đŸ™đŸ»

  • @containedhurricane
    @containedhurricane Pƙed 3 lety

    This is a great video. Thanks a lot

  • @GenjaOrigins
    @GenjaOrigins Pƙed 3 lety

    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.

  • @augustineumeagudosi5540
    @augustineumeagudosi5540 Pƙed 3 lety +1

    Thank you so much for this

  • @mageec1100
    @mageec1100 Pƙed 4 lety +1

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

  • @abhisheksubba7691
    @abhisheksubba7691 Pƙed 4 lety +7

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

  • @abhaytiwari6411
    @abhaytiwari6411 Pƙed 4 lety +1

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

  • @OnGe1234
    @OnGe1234 Pƙed 4 lety +2

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

  • @kaisertushar7554
    @kaisertushar7554 Pƙed 4 lety

    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.

  • @ronaldomaia
    @ronaldomaia Pƙed 2 lety

    Good summary