CS75 (Summer 2012) Lecture 9 Scalability Harvard Web Development David Malan

Поделиться
HTML-код
  • Опубликовано: 25 фев 2013
  • David Malan teaching CS75 lecture 9, Scalability.
  • НаукаНаука

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

  • @nanzownzu
    @nanzownzu 8 лет назад +3236

    Somebody needs to add a load balancer in front of Axel, all requests are being routed to Axel (he is still handling them pretty well though) :P

  • @devonbiere
    @devonbiere 2 года назад +71

    I'm legitimately terrified that I'll be in a system design interview, they'll ask me a question, and I'll immediately turn and ask, "Axel?"

  • @code4kix927
    @code4kix927 7 лет назад +2452

    horizontal scaling (13:00 - 21:00)
    load balancing & caching (21:00 - 29:00)
    shared session state (29:00 - 34:00)
    RAID (36:00 - 40:00)
    shared storage tech (42:00)
    database replication (43:00)
    load balancing tech (44:00 - 45:00)
    session affinity (46:00 - 51:00)
    in-memory caching (59:00 - 1:00)
    data replication - active:passive (1:11 - 1:14), active:active (1:16 - 1:21)
    partitioning (1:21 - 1:34)
    data center redundancy (1:33 - 1:39)
    security (1:39 - 1:44)

    • @shaoin3295
      @shaoin3295 7 лет назад +323

      I found it hard to read, so here it is a list (and corrected the hours):
      horizontal scaling (13:00 - 21:00)
      load balancing & caching (21:00 - 29:00)
      shared session state (29:00 - 34:00)
      RAID (36:00 - 40:00)
      shared storage tech (42:00)
      database replication (43:00)
      load balancing tech (44:00 - 45:00)
      session affinity (46:00 - 51:00)
      in-memory caching (59:00 - 1:00:00)
      data replication - active:passive (1:11:00 - 1:14:00) active:active (1:16:00 - 1:21:00)
      partitioning (1:21:00 - 1:34:00)
      data center redundancy (1:33:00 - 1:39:00)
      security (1:39:00 - 1:44:00)

    • @dhanadhana9459
      @dhanadhana9459 7 лет назад

      Shaoin

    • @ValentinChubukin
      @ValentinChubukin 6 лет назад

      thx a lot

    • @ganjoy007
      @ganjoy007 6 лет назад

      you guys like doing that? try reclipped.com for amazing note taking and sharing on videos

    • @majia8744
      @majia8744 5 лет назад

      @@shaoin3295 Thank you very much! This is really helpful

  • @pranaysingh3938
    @pranaysingh3938 8 лет назад +1130

    Plot Twist : Axel, Jack and Isaac are the only kids in class.

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

    Where is Axel today in 2024?

  • @GoEvenHarder
    @GoEvenHarder 2 года назад +64

    What I learned with all of this is that, if you have a problem in your system, just add a load balancer, if the problem persist, add more load balancers, if the problem is on the load balancer itself, add a load balancer to the load balancer.

  • @marriagedance8657
    @marriagedance8657 4 года назад +135

    Nobody:
    Literally Nobody:
    David: Axel?

  • @sagarkangutkar734
    @sagarkangutkar734 8 лет назад +294

    In this class, Axel is the anti-Jon Snow. He knows everything!

  • @cyrusvhadsupper
    @cyrusvhadsupper 8 лет назад +752

    Axel is wasting his money on this course

    • @yingwang7588
      @yingwang7588 8 лет назад +3

      :D

    • @jiakanwang7471
      @jiakanwang7471 8 лет назад +219

      I was curious about this guy. Searched around and apparently he quit Harvard after this class and founded a company called Newsle, which got acquired by LinkedIn pretty soon. Very impressive...

    • @bigray712
      @bigray712 8 лет назад +5

      nice find. thanks

    • @arkrou
      @arkrou 6 лет назад +12

      all the questions were too easy and no one else was bothering to engage

    • @shaishavsaraswat3791
      @shaishavsaraswat3791 5 лет назад +38

      It says he studied at harvard until April 2011 but, this course is from 2012. This maybe a different Axel

  • @nsambataufeeq1748
    @nsambataufeeq1748 9 месяцев назад +11

    Its been 7 years for me. I loved it then and still do. The entire course launched my career!

  • @liliguo7313
    @liliguo7313 8 лет назад +160

    I don't think axel needs to take this course. He seems know everything

    • @abhiagarwal281295
      @abhiagarwal281295 5 лет назад +1

      anti John-Snow doesnt mean he knows everything, it means he knows atleast something. Simple negation :P

  • @shijunwei728
    @shijunwei728 8 лет назад +101

    Axel is unstoppable!!

  • @YTOmkarBhagat
    @YTOmkarBhagat 7 лет назад +232

    This is a really good lecture. 14 minutes in this lecture and I must say the professor knows how to put together the stuff he's teaching. And Axel is everywhere xD

    • @skyinthepond
      @skyinthepond Год назад +5

      Axel is homie

    • @gameacc6079
      @gameacc6079 7 месяцев назад +2

      Axel sold out and is now working at citadel

  • @ashleyhayre1890
    @ashleyhayre1890 7 месяцев назад +6

    horizontal scaling (13:00 - 21:00)
    load balancing & caching (21:00 - 29:00)
    shared session state (29:00 - 34:00)
    RAID (36:00 - 40:00)
    shared storage tech (42:00)
    database replication (43:00)
    load balancing tech (44:00 - 45:00)
    session affinity (46:00 - 51:00)
    in-memory caching (59:00 - 1:00:00)
    data replication - active:passive (1:11:00 - 1:14:00) active:active (1:16:00 - 1:21:00)
    partitioning (1:21:00 - 1:34:00)
    data center redundancy (1:33:00 - 1:39:00)
    security (1:39:00 - 1:44:00)
    ​ @Shaoin

  • @shadoninja
    @shadoninja 4 года назад +48

    This is one of the most informative and well-presented CS lectures I have ever seen

  • @rafaelvaliev8434
    @rafaelvaliev8434 5 лет назад +41

    Good lecture. I like this style of teaching when you go deeper and deeper based on simple questions.

  • @JordanSullivanadventures
    @JordanSullivanadventures 11 месяцев назад +24

    This guy has such a great Socratic teaching style! At first I was annoyed by the constant questioning, but then I started participating myself (even though I didn't watch the rest of the course) and had a lot more fun!

  • @misscool4397
    @misscool4397 4 года назад +72

    I just love David Malan’s teaching style. He’s soooo my favorite professor for CS! How does he make complex topics so easy to understand? Amazing!

  • @aoi9716
    @aoi9716 6 лет назад +16

    It is the most popular tutorial video for system design and recommended almost everywhere. Thank Professor David Malan and the uploader.

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

    This lecture can never get old!

  • @vetiarvind
    @vetiarvind 2 года назад +16

    Nice, never imagined a CS lecture would come close to hitting a million views. I'm a 10 year+ experienced engineer and i've literally practically used all the stuff he's talking about on production but sometimes it's just good to hear some theory.

  • @swatijagdale3853
    @swatijagdale3853 2 года назад +29

    Great lecture. How I Wish I studied CS from professors like him.

  • @josephavila3539
    @josephavila3539 Год назад +4

    Love this content and professor, it reminds me of my favorite professor in my undergrad for computer architecture. What made him so great was a superb delivery on a communication level, with a tremendous talent for speaking and annunciating. He knew his material inside and out and He also knew how to draw the class in by making the class think extremwly hard as a whole by presenting new challenging problems and invited conversations. Bravo and well done. These profs are gems.

  • @meketrefe
    @meketrefe 7 лет назад +16

    That was an amazing class! Thank you very much, @David Malan!

  • @abhimanyushekhawat2626
    @abhimanyushekhawat2626 3 года назад +9

    I wish I could attend his live class someday. An amazing way to build up an understanding of System Design.

  • @GaurangPatel1
    @GaurangPatel1 9 лет назад +9

    Wow, that was extremely clear, especially the wrap-up example he did at the end!

  • @VinBhaskara_
    @VinBhaskara_ 11 лет назад +2

    You Rock Archn. I am completely impressed by your dedication to help the world for ensuring quality education. Love you sir!!! Great great job!!

  • @jjz3397
    @jjz3397 6 лет назад +197

    is Axel teaching assistant making sure theres is no awkward silence?

  • @eselwalker
    @eselwalker Год назад +2

    Thank you for the lecture
    10 years later it's still very good
    And that cache server on axel is running smooth

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

    Being a professional in this space with over 20 years of experience, this is a really good talk, covers basically most of the concerns of high performance web system design.

  • @GomzG
    @GomzG 6 лет назад +1

    Loved listening to the class, much more awake to this than any of my classes.

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

    This is a piece of history for the modern internet. He mentioned AWS EC2 like a VPS, 12 years have passed but the internet world has completely changed.

  • @halahmilksheikh
    @halahmilksheikh 9 лет назад +144

    Axel is a beast

  • @wagnermoreira786
    @wagnermoreira786 6 месяцев назад +1

    thank you so much for putting this out online, it's been amazingly useful, totally relevant in 2023

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

    The most engaging lecture I've watched in recent times!

  • @MrJohnMclane
    @MrJohnMclane 5 месяцев назад +1

    Amazing lecture! Great professor and engaged students. Thanks for sharing this.. still relevant in 2024

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

    This is the best lecture to learn System Design. My life has changed!

  • @sankothari
    @sankothari 5 лет назад +8

    I like that he pauses and asks questions whenever he is starting to introduce a new concept, gives listeners a chance to think about it before he gives the solution so that they know why the solution provided makes sense.

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

      Don't most teachers do this? Either way, David Malan is a world class teacher and computer scientist overall

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

      @@Dakid015 True. But he seems genuinely interested in listening what others have to say, and understanding their thought process, which is a great skill in a teacher.

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

    very nice. I don't usually watch 1 hour+ videos on a single go, but this had me glued. Great lecture.

  • @tusharniras
    @tusharniras 6 лет назад +1

    this is ultimate... I watched an entire thing.. It's a good class to attend after CS50

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

    9 years later, still relevant to full extent.

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

    It was recommended over a website, and this lecture is very informative and refreshes many jargons and provides some more insights as well. Very much recommended and thanks for this lecture Professor.

  • @gurdoman
    @gurdoman 4 года назад +5

    Great class, way better than any class I had in my college

  • @beibit-ds
    @beibit-ds Год назад

    amazing storyline, progressively building it up from scratch

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

    Detailed Summary for [CS75 (Summer 2012) Lecture 9 Scalability Harvard Web Development David Malan by Merlin
    [00:08] Scalability and Web Hosting
    - Explaining different options to deploy applications and handle traffic online, including shared web hosting and virtual private servers (VPS).
    - Outlining vertical scaling and horizontal scaling as ways to increase resources and handle traffic spikes, and discussing the advantages of Amazon Web Services (AWS) for automating scaling.
    [07:52] Horizontal scaling means using cheaper, slower machines instead of expensive, high-end ones to stay below the ceiling of what is possible
    - Multiple slower, cheaper machines replaced by one high-end, expensive machine for building out the topology
    - Using SAS, SSDs and parallel ATA for speeding up data read/write times on databases
    [22:24] DNS round robin can lead to uneven server load
    - Caching can contribute to disproportionate load on certain servers
    - Sophisticated load balancing approaches can mitigate this issue
    [30:13] Storing sessions using RAID technology can increase site performance and provide redundancy
    - RAID technology can be used to store session data on a file server
    - RAID 0 can improve performance by striping data across multiple identical hard drives, while RAID 1 mirrors data for redundancy
    [43:51] Load balancers can be expensive, but there are software alternatives.
    - Software like Haproxy can be used for load balancing.
    - Cookies can also be used for maintaining sticky sessions, without compromising on privacy.
    [50:41] Using file based caching on static content may improve performance, but sacrifices space due to redundancy
    - File based caching means less regeneration of content
    - Redundancy in basic HTML tags can lead to increased disk space usage
    [01:04] Using a memory engine can help implement a cache efficiently
    - Memory engine tables are stored in RAM and can be used to write keys and values to implement a simple cache
    - Archive engine tables are slower to query but get compressed automatically, making it useful for storing log files
    [1:11:32] Having multiple slave databases serves as a redundancy for data loss
    - Databases attached to a master allow for a copy of every row that's in the master database, which can be further utilized as a redundancy if one database dies
    - Master-master setup is another redundancy solution to keep multiple databases in sync
    [1:25:37] Load balancer can ensure sticky sessions with cookie-based routing
    - Adding a load balancer to route traffic and store session cookies can ensure sticky sessions
    - Multiple master databases and cross-connecting them with load balancers adds redundancy but also complexity
    [1:33:13 Having multiple data centers and load balancing can improve uptime and reduce failure possibilities.
    - Avoid creating loops in network redundancy with two switches per server/ device.
    - Distribute load across different data centers and use global load balancing for higher uptime.

  • @Pranav2579
    @Pranav2579 8 лет назад +295

    I think Axel flunked the course and is retaking it !! :P

  • @GeorgeSchott
    @GeorgeSchott  11 лет назад +4

    I'll upload them today. Thanks for letting me know!

  • @najafmohammed4685
    @najafmohammed4685 4 года назад +15

    I picture Axel just sitting there holding his hand up the entire lecture

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

      Does it really matters 🤪

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

    I wish my university and professors was this good. Thanks Harvard and David Malan

  • @truevelvett
    @truevelvett Год назад +20

    As a tenured engineer, this was really good to listen to (even if I knew most of it from experience). It also made me a bit jealous of the quality of education at Harvard.

  • @ninaddesai7294
    @ninaddesai7294 9 месяцев назад

    one of the best lectures I have ever attended to learn cs things

  • @vin0summers
    @vin0summers 7 лет назад

    Wonderful demonstration of scalability!

  • @SushilKumar-wt7js
    @SushilKumar-wt7js 4 года назад

    this man is great, how interactive he is.

  • @guruvigneshnagaraj8501
    @guruvigneshnagaraj8501 7 месяцев назад +1

    Holy moly! What a prof! Brillant explanations!

  • @ajkpalikuqi8610
    @ajkpalikuqi8610 9 лет назад +25

    Great lecturer! Everything is very clear

  • @TechVenturer
    @TechVenturer 9 месяцев назад +1

    I wish my prof was as good as him.
    Enjoying his lecture even after 10 years of upload.

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

    Very insightful and elegantly delivered!

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

    this is a fantastic lecture, great for prepping for interviews and what not

  • @rakeshswarankar
    @rakeshswarankar 5 лет назад

    I was looking for a video which explain me end to end solution. I really appreciate for giving the lecture and uploading the video.

  • @dharini09
    @dharini09 6 лет назад +55

    There should be an Axel meme. Every time someone has a question, they ask Axel.

  • @xinyueou4857
    @xinyueou4857 5 лет назад

    The coolest thing of this video is it clearly records what the students said as well.

  • @heidinewton6303
    @heidinewton6303 9 лет назад +10

    Great lecturer! I learnt a lot from this video :-)

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

    Excellent lecture Sir. It was a pleasure listening to you and the topic.

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

    Regarding the approach discussed around 45-50mins in (cookies determining to which backend server a LB should route a request). He presents it as the perfect solution, but he ignores the problem he stated earlier when discussing other approaches. If you have a power user that creates heavy requests and they all go to the same server (as determined by the cookie), the load won't be balanced too well. Also, it ignores the fact that load on backend servers may change in time (if a given server was underutilized at the time of creation of the cookie, it doesn't mean the load will stay this way for the whole lifetime of the cookie).
    Great and engaging lecture overall! Kept me focused and answering his followup questions in my head :)

  • @ReadableWig9
    @ReadableWig9 9 лет назад +104

    Didn't know Moriarty teaches at Harvard

    • @Chris-hn2mc
      @Chris-hn2mc 8 лет назад

      +Ramón López LOL

    • @ZhuYang
      @ZhuYang 8 лет назад +6

      +Ramón López Sherlock is Axel, in fact.

    • @catmaomao9859
      @catmaomao9859 7 лет назад +1

      LOL I was thinking the same thing!

  • @zanda143
    @zanda143 10 лет назад +1

    David Malan great lecturer . I was already knowledgeable now I know more. ++

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

    Just wow! Very informative and useful. Thank you for making this available to us.

  • @ezeibesandra5878
    @ezeibesandra5878 2 года назад +7

    So much wisdom in one man. This is a real teacher. I want him to be my masters lecturer. He is so good.

  • @shravyaramesh3153
    @shravyaramesh3153 22 дня назад +1

    Top notch content! Thank you so much for uploading this 🍀

  • @baizuofu
    @baizuofu 8 лет назад +36

    Best teacher ever!

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

      @@gustavogianotti4128 No. Malan

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

    The teacher is excellent, this needs to be noted

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

    Thanks for this lecture, Axel.

  • @mridulareddy6961
    @mridulareddy6961 11 месяцев назад

    It is one of the most resourceful resource for system design

  • @MezzoEnzis
    @MezzoEnzis 7 лет назад

    Fantastic lecture on Load Balancing!

  • @ahmadullahalnoor9364
    @ahmadullahalnoor9364 5 лет назад +85

    Axel did Axellent

  • @peculiarediomo-abasi6304
    @peculiarediomo-abasi6304 2 года назад +1

    I enjoyed this lecture! Thanks David.

  • @ankitsmit19
    @ankitsmit19 5 лет назад +1

    Meanwhile, the other students started playing a game where they drink shots every time the professor says 'Axel'. Thank you @David Malan for a great lecture.

  • @Ayoub-adventures
    @Ayoub-adventures 6 лет назад

    Smart And Eloquent Teacher !

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

    This is gold for beginners.

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

    @1:30:00 diagram is not equivalent to previous one because if Alice is sent to server 1, her data is now on both db servers due to master-master replication. So cross-connect is only needed if a db server fails, to ensure the other db server is used.

  • @piyushramnani9750
    @piyushramnani9750 7 лет назад +197

    What if this is just a student presenting a project and Axel is the real teacher ?

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

    The lecture is a gem

  • @TheKarthykeyan
    @TheKarthykeyan 6 лет назад

    This is a very useful video to learn about infra architecture..

  • @PVkiTV
    @PVkiTV 11 месяцев назад +2

    Jack and Exel? They're probably off chasing unicorns in the land of glitter and rainbows! 🌈🦄

  • @alibbank
    @alibbank 9 лет назад +2

    Great lecture! Thanks for sharing!

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

    Great lecture! Need to revisit and take notes

  • @danielearwicker
    @danielearwicker 5 лет назад +19

    Need to give Axel a microphone next time I think.

  • @yijiang7779
    @yijiang7779 6 лет назад

    This lecture is awesome! Thanks for sharing!

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

    Thanks for this amazing lecture Prof.

  • @YashSharma-fm1du
    @YashSharma-fm1du 4 года назад

    brilliant, still relevant in 2020

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

    Axle here really answering majority of the questions

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

    Fantastic Lecture. Covered pretty much all the aspects from the ground up. Great job

  • @bharathipriyaathangamani4894
    @bharathipriyaathangamani4894 7 лет назад +69

    Axel is now an engineering manager at LinkedIn. How old is this video???!!!

  • @jubi91
    @jubi91 10 лет назад +4

    Great lecturer!

  • @gobbledee55
    @gobbledee55 9 месяцев назад

    He is such a good teacher... wow

  • @Motiahmed330
    @Motiahmed330 5 лет назад +1

    Great lecture. Though it makes me think about how a distributed blockchain architecture would be so radically different...

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

    This Axl guy had nearly all the answers, definitely smart enough to get into Harvard.

  • @panhejia
    @panhejia 8 лет назад

    Awesome lecture! Love it!

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

    Great lecture, thanks for uploading it! It's incredible that even at 2013 he didn't mention JavaScript at all!

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

      Do you think NodeJS is mature enough for Backend? Or Perhaps C# is.

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

      @@adityap8387 Yes, node is being used in the backend by many big companies like Netflix and PayPal. However, the most critical backend tasks are still done in Java.

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

      @@adityap8387 yup, definitely mature enough

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

    Scalability simplified . Topics covered could otherwise be very lengthy . It helped . Thanks