DevTools Waterfall Deep Dive - Diagnose Your Backend and Improve the Frontend User Experience

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ค. 2024
  • In this video we will learn the performance waterfall in devtools networking tab and how you can use it to diagnose your backend and improve the user experience o your web application
    0:00 Intro
    1:20 Simple Insecure WebSite
    6:45 Simple Secure WebSite
    9:10 HTTP/1.1 WebSite with Many Resources Single Domain
    18:46 WebSite with Many Resources in Different Domains and Protocols
    🎙️Listen to the Backend Engineering Podcast
    husseinnasser.com/podcast
    🏭 Backend Engineering Videos
    • Backend Engineering (B...
    💾 Database Engineering Videos
    • Database Engineering
    🏰 Load Balancing and Proxies Videos
    • Proxies
    🏛️ Software Archtiecture Videos
    • Software Architecture
    📩 Messaging Systems
    • Message Queues & PubSu...
    Become a Member
    / @hnasr
    Support me on PayPal
    bit.ly/33ENps4
    Stay Awesome,
    Hussein
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @Fabreg01
    @Fabreg01 3 ปีที่แล้ว +48

    24:16 I think are two different connection Id 4422, 4442. Superb content as always!!

    • @hnasr
      @hnasr  3 ปีที่แล้ว +28

      Lol nice catch I am getting old 😅

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

      @@hnasr 😅

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

      @@hnasr if it helps, I didn't notice. Even after I read this comment I had to look twice lol

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

    A terrific "must watch video" for any back-end or front-end engineers out there! Awesome DevTooling series btw. Keep it up!! :)

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

    Whatever topic i think i need to understand more, here comes same video. Love you. Thanks.

  • @ismail-talb
    @ismail-talb 2 ปีที่แล้ว +1

    really beautiful tutorial...there was a missing piece in my head now I've found it . Thank you

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

    Amazing video! Thank you! This series is really good!

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

    great content, i learned lots ! thank you

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

    Wow what a amazing content, lot of learning for me from this video, definitely going through other videos.
    Thanks for creating such content and sharing it👌🙂

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

    It's easy to follow this lecture and with humor. Thanks Hussein :-)

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

    This is awesome!

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

    I can't thank you enough for your content, allah yakramek

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

    very well done - thx!

  •  3 ปีที่แล้ว

    Great content!

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

    Great content, thanks

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

    Awesome content! Hats off to you for the effort being put here.
    One suggestion: Please zoom in for the mobile viewers. Font is bit smaller to read.

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

    Superb content! MashaAllah

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

    thank you a lot for the quality content

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

    Amazing content

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

    Your content is just amazing. Thanks for sharing your knowledge.

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

      Thank you Libert!! 😍 glad it helps

  • @ca7986
    @ca7986 3 ปีที่แล้ว +6

    ♥️ you are absolutely amazing! The content you display, the way you explain and teach. MashaaAllah ❤️

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

      Thank you so much 😊

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

    Thank you 🙏

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

    Awesome vid as always!
    I noticed in your multiple TCP socket example for badssl (around @18:30 ), there were no orange/purple bars for the secondary connections (until you moused over), which I thought was odd. But when I try it on mine now, I see them, so perhaps was a Chrome UI bug that has since been fixed.

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

      probably I had opened them in another session in preparation of this video and they got "cached" .. Chrome seems to cache those connection even if I close the browser. I have to make sure to restart the machine and do a clean recording next time. Good catch

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

      can u explain in simple term plz i did not got your concept of Q?

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

    Nice

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

    thanks

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

    Make more on devtools!

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

    Heyy show it😂 thank you 😊

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

    woah...
    explained very well... i fell like i've gained a superpower now

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

    Another amazing and very insightful video Hussein ! Thanks! 🙂
    Just wanted to ask one thing.. as you described the mechanism of how resources are fetched to browsers.. you told that they were getting downloaded. Where is this downloading actually happening? Does it get downloaded in the browser.. some cache ? It would be great if you could elaborate a bit on that ?

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

      Chrome and other browser software, when installed, dedicate a folder on your system to things like cookies and cache. That is likely where it gets stored. Something like C:/Program Files/Google/Chrome/cache/cache327.txt or C:/Users/Documents/Google/cache/cache82394.txt. Just pulled these examples from my head but its the same idea I guess.

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

    Make a similar series on frontend ???? Or any similar channels like yours for frontend?

  • @Jack-uc5ly
    @Jack-uc5ly 3 ปีที่แล้ว

    Love your videos, quick question:
    You said 'h2' requests are not cheap on the CPU, how do you know this? Are there any popular resources you can share on this subject please?
    Thanks in advance and keep up the awesome content!

    • @hnasr
      @hnasr  3 ปีที่แล้ว +6

      Hey Jack, if you know how H2 works you will understand why it takes more CPU/memory compared to H1. You can watch my http/2 video on the topic I have a whole playlist discussing this
      My main resources are the RFC
      HTTP/2
      th-cam.com/play/PLQnljOFTspQWbBegaU790WhH7gNKcMAl-.html

    • @Jack-uc5ly
      @Jack-uc5ly 2 ปีที่แล้ว

      @@hnasr so sorry I missed this reply, and here I am again trying to find something else.
      I'm working on a nodejs backend service at work, which sends a lot of HTTP requests to get the information it needs to respond to the client.
      I'm trying to debug the slow performance, had some major breakthroughs but, one tool which would be really helpful, is to have this network request waterfall chart but for the backend service itself. Just to get a visual representation instead of sifting through logs and building up a picture myself.
      Any ideas of such tools? Can't seem to find any so might just make my own

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

    Thanks for the video and
    1. Can we get TCP connection info in req object
    2. Any Roadmap for learning Nodejs and AWS

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

    It's interesting to observe all the time and effort Google and others put into the HTTP/2 and TLS 1.3 protocols, specifically around reducing the # of round-trips, while their pages have multiple redirects and contents served across a ton of different domains (despite using H2). While I applaud the protocol optimization efforts, it does end up feeling like in trying to increase your car's MPG (fuel efficiency) you got ideal pressure in your tires, turned down the A/C, removed your cargo rack... but are driving an SUV in stop-and-go traffic.
    On a related note, if website still have their content spread all around via domain sharding from the 1.1 days, won't that actually make things worse if they switch to H2? Are they waiting for a critical mass of new connections to use/support it before adjusting their content serving strategy, or is it just overlooked/forgotten and thus they'll never really reap the benefits of H2 they imagined?

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

      I always think about that and my guess are new engineers take over and the knowledge is "lost" and people forget why they were doing things the way they were.

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

    How can we get these values in python programming ?

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

    Can anyone please tell me how exactly we can identify which calls are parallel by using chrome dev tools ???

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

    Which is the best caching for build a caching server ?

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

      That depends on your needs... Does it have to be asynchronous? What data structures do you want it to support? What caching strategy are you willing to use? Do you want to have replicas/clusters?

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

      @@rubendariofrancodiaz6944 Our Use is to Cache the iptv middleware server.

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

    Show it.

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

    24:06 I think thats a different connection no? o.O

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

      oops just saw another comment addressing the same

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

    I wonna be that kid
    FIRST
    Yes i will go out now

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

    Probably it's too late but hi show it

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

    I wonder why you don't use COMMAND + ALT + I to access Dev tools... 🤔

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

      I didn't know that shortcut thanks for sharing!!

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

      @@hnasr Thanks to you for such detailed explanations ☺️

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

    07:20 actually it tooks less time (81 ms) instead of 95ms 🤣

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

      Yeah the first call was stalled for some reason when i opened a new tab we didn’t get any stalling