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

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

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

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

    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

  • @code4kix927
    @code4kix927 8 лет назад +2561

    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 лет назад +333

      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

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

      thx a lot

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

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

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

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

  • @pippopeppe83
    @pippopeppe83 8 месяцев назад +10

    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.

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

    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?"

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

      😂😂

    •  4 месяца назад +5

      Dude, Axel by now is the interviewer

  • @nsambataufeeq1748
    @nsambataufeeq1748 Год назад +16

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

  • @shenqiangshou
    @shenqiangshou 8 месяцев назад +6

    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.

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

      So it is still relevant as learning material in today's time?

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

    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.

  • @JordanSullivanadventures
    @JordanSullivanadventures Год назад +34

    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!

  • @OurVideoful
    @OurVideoful 4 года назад +41

    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

  • @aabidmajid4929
    @aabidmajid4929 8 месяцев назад +84

    Where is Axel today in 2024?

    • @PositivePulse-oy1ts
      @PositivePulse-oy1ts 3 месяца назад +31

      Wow! glad to know people ask about me. really learnt a lot in that lecture
      Prof. Malan is great

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

    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.

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

    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!

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

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

  • @YTOmkarBhagat
    @YTOmkarBhagat 8 лет назад +252

    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 Год назад +3

      Axel sold out and is now working at citadel

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

    I used to watch david malan cs50 course back in 2021 when i was in 2nd semester of CS. degree. Now for system design in 2024 :)

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

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

  • @shadoninja
    @shadoninja 5 лет назад +48

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

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

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

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

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

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

    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.

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

    donnemartin's system-design-primer required topics:
    horizontal scaling (13:00 - 21:00)
    load balancing & caching (21:00 - 29:00)
    load balancing tech (44:00 - 45: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)

  • @marriagedance8657
    @marriagedance8657 5 лет назад +162

    Nobody:
    Literally Nobody:
    David: Axel?

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

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

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

  • @Himanshusharma-rl5nx
    @Himanshusharma-rl5nx 2 месяца назад +1

    best teacher of CS, and best student of CS , both in same class!

  • @scrublydoo
    @scrublydoo Год назад +6

    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.

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

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

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

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

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

    Axel is wasting his money on this course

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

      :D

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

      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 7 лет назад +12

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

    • @shaishavsaraswat3791
      @shaishavsaraswat3791 6 лет назад +40

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

  • @josephavila3539
    @josephavila3539 2 года назад +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.

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

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

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

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

    Axel is unstoppable!!

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

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

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

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

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

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

  • @jjz3397
    @jjz3397 7 лет назад +204

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

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

    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

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

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

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

    Axel is a beast

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

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

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

    Best teacher ever!

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

      @@gustavogianotti4128 No. Malan

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

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

  • @piyush_ramnani
    @piyush_ramnani 7 лет назад +201

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

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

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

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

    9 years later, still relevant to full extent.

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

    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.

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

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

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

    This lecture can never get old!

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

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

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

    It is one of the most resourceful resource for system design

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

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

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

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

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

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

    Axle here really answering majority of the questions

  • @beibit-ds
    @beibit-ds 2 года назад

    amazing storyline, progressively building it up from scratch

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

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

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

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

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

    Didn't know Moriarty teaches at Harvard

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

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

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

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

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

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

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

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

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

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

    Need to give Axel a microphone next time I think.

  • @madhavmishra2453
    @madhavmishra2453 28 дней назад

    Prof’s session has remarkable stickiness to Axel node,

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

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

  • @ahmadullahalnoor9364
    @ahmadullahalnoor9364 6 лет назад +86

    Axel did Axellent

  • @gurdoman
    @gurdoman 5 лет назад +5

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

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

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

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

    I usually listen to these videos on 1.5 or 2x, but I legitimately considered putting it on .75x lol

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

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

  • @looppp
    @looppp 8 лет назад +33

    Such a good lecture, but the only complaint is the voices of the students are SO low!! I can't hear them.

    • @santhoshdevaraj8697
      @santhoshdevaraj8697 8 лет назад +26

      Did you atleast hear axel ????

    • @looppp
      @looppp 8 лет назад +21

      YES I HEARD AXEL LOUD AND CLEAR

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

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

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

    The teacher is excellent, this needs to be noted

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

    great video from the archive. long live the internet.

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

    Holy moly! What a prof! Brillant explanations!

  • @PiyushRaj-nk2xl
    @PiyushRaj-nk2xl 3 года назад

    All Computer Science Lectures begins with lot of curiousity and enthusiasm but always and I mean always ends with Buildings Burning Down(1:34:30)

  • @liquiddddd
    @liquiddddd 5 лет назад +11

    this instructor is just great! Does anybody know if the guy has an Channel (youtube or whatever) of his own? And damm... someone bring a cooler to Axel.

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

    Thanks for this lecture, Axel.

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

    this man is great, how interactive he is.

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

    Born to late for the comp si boom. Born to soon to avoid the comp si recession.
    Currently I’m a junior at a company but the economy sucks right now. I’m studying system design topics to keep up my knowledge.

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

    Great lecturer! Everything is very clear

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

    Axel is clearly the favorite student!

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

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

  • @GuitarreroDaniel
    @GuitarreroDaniel 4 года назад +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

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

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

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

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

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

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

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

    Am I the only one coming back to this before each System Design interview?

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

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

  • @rohananthwal2527
    @rohananthwal2527 2 месяца назад +1

    11 years still relevant

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

    After certain point of time, I, in my head, myself starts calling out Axel for an answer if there is any awkward silence, basically I am cheering for axel.

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

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

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

    I still have a question on a person who potentially put a lot of load into a single server. At first, we were afraid of someone might send a lot of much-load requests to single server, so we introduced load balancer. However, once we use the cookie to resolve which server store that user's session, we still keep on sending much-load requests to that single server.
    In real world, there shouldn't be this kind of user that can bring the whole server down like this. I just kinda have this point in my mind that when did we forget this problem.

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

    Even though I’ve been working as a SWE for a while now, this video makes wish I had majored in CS vs EE. This stuff is so much more interesting to me than EE crap.

    • @TheMsnitish
      @TheMsnitish 5 лет назад +2

      Well, I major in Materials Science . Even more crappier than EE.

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

      EE is also interesting. Its just that most of the cool stuff in EE is expensive afaik to experiment whereas with CS you can spin up a cluster and test all these theories mentioned in this lecture on your own at very low cost(almost free). For EE, even if you want to low scale electronics(I am from ECE, hence the electronics), even bread board costs money.

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

    1:30:00 " ... Functionally this is equivalent" - not really, since the horizontal connection between db1 and db2 presumably represents bidirectional replication.

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

    I enjoyed this lecture! Thanks David.

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

    The lecture is a gem

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

    Axel... Axel... Axel is everywhere.

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

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