Caching - Simply Explained

Поділитися
Вставка
  • Опубліковано 15 лис 2024
  • What is a cache? How does it work, and why is it important?
    Caches are used everywhere in our modern devices. It's found in many hardware components and throughout software. The goal of caching is to store data from slow memory into fast memory so it can be retrieved quicker.
    That's why browsers keep a cache: so they don't have to re-download everything from the internet over and over again.
    🌍 Social
    Twitter: / savjee
    Facebook: / savjee
    Blog: savjee.be
    💌 Newsletter: newsletter.savj... (no more than once a month)
    ❤️ Become a Simply Explained member: / @simplyexplained
    📚 Sources used to make this video:
    savjee.be/vide...

КОМЕНТАРІ • 107

  • @neutra__l8525
    @neutra__l8525 3 роки тому +101

    I did 4 years of computer systems engineering in 1993 and this is far clearer than any explanation I got at the time. lol. Im constantly amazed by how much better youtube videos are than older forms of learning.

    • @mr.mustache4743
      @mr.mustache4743 2 роки тому +3

      Its a shame a lot of people discredit online learning as if it was < brick and mortar schooling.

  • @palabinash
    @palabinash 4 роки тому +81

    Examples are the best way to make someone understand.

    • @AchwaqKhalid
      @AchwaqKhalid 4 роки тому +1

      Especially for primates 🧠

  • @dizzyrocket2000
    @dizzyrocket2000 3 роки тому +29

    With the book/library example I think a better analogy would be: You take a PHOTOCOPY of some of the book's pages home with you - that way you have a local copy of the information you need (cached data). The data is up-to-date at the moment you took it from the library, but here lies the typical problem with cached data: If the original author of that book decides to update the original copy at the library, then your copy of the data (your photocopy) is no longer up-to-date and you need to go and get a new photocopy from the updated book at the library (clear your cache)

    • @abcdefghijklmnopqrstuvwxyz0
      @abcdefghijklmnopqrstuvwxyz0 Рік тому +1

      Great addition to this example but that would also mean less simple, depending on the audience 😉

    • @computerhoofd
      @computerhoofd Рік тому +2

      Great improvement to the already good analogy

  • @margin-fades
    @margin-fades Рік тому +5

    The library analogy is really good.

  • @TheBinklemNetwork
    @TheBinklemNetwork 2 роки тому +6

    while other videos got me to understand the importance of caching, this one got me to understand WHY caching at different levels (cpu vs HDD) is so important

  • @trycatchlearn
    @trycatchlearn 3 роки тому +8

    No way to dislike the video, examples was very real.

  • @anainmazatlan
    @anainmazatlan 3 роки тому +9

    An excellent, easy to understand explanation of cache! Thank you very much for this!!

  • @tolgaoy7957
    @tolgaoy7957 3 роки тому +1

    I already knew what is a cache but I have never think that it could be explain that much simple. I am sure that I will use that examples some where in my life. Thank you for this awesome video.

  • @harziraaa
    @harziraaa 2 роки тому +1

    This is the best way to explain cache! Understood it in 5 min

  • @ChildrenOfDemiurgos
    @ChildrenOfDemiurgos 2 роки тому +2

    Amazing explanation. I hope I can cache this explanation somewhere close by in my memory haha😂.
    You’re Dutch right?! Your accent sounds like it.

  • @ldchappell1
    @ldchappell1 2 роки тому +1

    Thank you *so much!* This was the fifth video I watched trying to understand the principles of cache.
    Now I get it. 👍

  • @ThorstenStaerk
    @ThorstenStaerk 3 роки тому +3

    Now what's the difference between a cache and a buffer? The buffer is the suitcase that you use to take the books from the library to your house. For example, if you want to print a document, you will put it into your printer's buffer and the printer will take it from there.

    • @richiewilliams8374
      @richiewilliams8374 2 роки тому

      hello, pls clear me on this; apart from Lvl1 cache (internal) in the cpu, is the cache also in RAM &how ? as we know that cache is a ram , specifically sram

    • @ThorstenStaerk
      @ThorstenStaerk 2 роки тому

      @@richiewilliams8374 RAM caches what you get from network, disk and so on. CPU cache caches what the CPU gets from RAM. There are 3 levels of CPU cache.

  • @AfonsodelCB
    @AfonsodelCB 3 роки тому +2

    compression, encryption, and error detection of messages over a connection is also something that was mostly figured out before consumer desktops even existed

  • @selenefroehlich9138
    @selenefroehlich9138 3 роки тому +1

    excellent video, it blew my mind how easily you could explain this subject, thanks so much!

  • @abcdefghijklmnopqrstuvwxyz0

    This unlocked a door for me I didn't know existed in a completely different department yet relative to computers which simplified things much more for me! Thank you for providing a key! 😎

  • @Life_Has_Changed
    @Life_Has_Changed 3 роки тому +14

    Wow, great explanation, and a lot of effort are put in your videos to be engaging and easy to understand. Subbed. Also your UA-cam recommendations are very similar to mine xD at 1:24. Do you do all the editing and script on your own?

  • @ndrakeb8926
    @ndrakeb8926 3 роки тому

    Just started watching NoSQL video and subscribed.
    Brilliant explanation !!

  • @ALF444
    @ALF444 3 роки тому +1

    Best explanation among others videos. Thanks

  • @abdulmalik1169
    @abdulmalik1169 2 роки тому +1

    awesome explanation

  • @Fede-mn8pt
    @Fede-mn8pt 3 роки тому +1

    Very nice video. Thanks for teaching us what is the Cache. Keep doing your great work :D

  • @Point_breaker_10
    @Point_breaker_10 Місяць тому +1

    Damn, dude, you just nailed it 🫡

  • @johnq748
    @johnq748 5 місяців тому

    Thanks for the explanation. Great job.!

  • @JohnJohnson-kg4ek
    @JohnJohnson-kg4ek 2 роки тому

    Absolute lifesaver. Thank you!

  • @Luisja_c
    @Luisja_c Місяць тому

    So I finally understand cache

  • @Zakaria_Dev9
    @Zakaria_Dev9 11 місяців тому

    Simply explained ! for REAL !!

  • @UchihaMadara-888
    @UchihaMadara-888 Рік тому

    Perfection in a video

  • @anilv4
    @anilv4 4 роки тому +2

    What is the difference between cache and buffer?

  • @faruzzy
    @faruzzy Рік тому

    Really loved this. thank you

  • @Hambxne
    @Hambxne 3 роки тому

    glad to see you listen to lex as well

  • @zacharychow8485
    @zacharychow8485 2 роки тому

    Great video! Thank you

  • @hildesong817
    @hildesong817 2 роки тому

    Thank you for the explanation!

  • @mohamedtarek-gh4fr
    @mohamedtarek-gh4fr 3 роки тому

    wow you hit it, dude you are amazing

  • @e_m_g
    @e_m_g Рік тому

    Nice explanation 👍

  • @itsraviksharma
    @itsraviksharma 3 роки тому

    Wow! Could understand very easily! Great 👍

  • @GeorgeDimovelis
    @GeorgeDimovelis 2 місяці тому

    amazing video , subscribed

  • @bowen-feng
    @bowen-feng 3 роки тому

    Very well explained, thank you!

  • @HamsoEdits
    @HamsoEdits 2 місяці тому

    very informative

  • @Slayz38
    @Slayz38 3 роки тому

    I liked a lot the animation, keep up with the good work ;)

  • @Plantje1978
    @Plantje1978 3 роки тому

    Exactly what I needed!

  • @avinashshitole9995
    @avinashshitole9995 Рік тому

    Nice example this helps

  • @lukmanhdrjaya
    @lukmanhdrjaya 2 роки тому

    Great explanation 👍👍

  • @shariarparves8789
    @shariarparves8789 2 роки тому

    Explain nicely

  • @Skreperiukas
    @Skreperiukas 3 роки тому +1

    FINALLY I CAN SEE!!

  • @prajwalsiwakoti9866
    @prajwalsiwakoti9866 3 роки тому

    Amazing..keep up the good explanation sir

  • @gopinathgupta6464
    @gopinathgupta6464 4 роки тому +1

    Quite informative 👍

  • @brandongormley472
    @brandongormley472 2 роки тому

    This was brilliant

  • @joserafaelgonzalez9514
    @joserafaelgonzalez9514 2 роки тому

    Cool info=) Thank you!

  • @starshiva7088
    @starshiva7088 3 роки тому

    Good explanation bro🙂👍🏽

  • @manishamulchandani1500
    @manishamulchandani1500 3 роки тому

    I have doubt regarding caching
    Consider I have "cache aside pattern" and "in memory cache" in application server is used. I'm looking for Invalidation logic when there is an update. This was the context.
    I read for critical data like password/financial information we use Write Back policy to ensure consistency. In write through one instance's in memory cache entry gets updated and others can remain stale. So, there is inconsistency in write through
    My question is same can happen in Write Back, one instance's in memory cache entry gets deleted(invalidated) and we update DB..other instances in memory cache still have that entry. So there is inconsistency in write Back as well? Why do we prefer write back for critical data because same issue is there in write back.
    If answer is invalidate all instances' in memory cache entry then same can be done for Write through. Which makes me ask question 2.
    My another question is : We can update all instances' in memory cache entry and then update DB. In this way consistency is maintained so why not we use Write through for critical data like password financial information?

  • @lifesfluff
    @lifesfluff 2 роки тому

    thank you

  • @hoangnguyen7381
    @hoangnguyen7381 3 роки тому

    Thanks for video, awesome!

  • @rezmed1144
    @rezmed1144 4 роки тому +3

    how can i make animation as he does ? which tools (way) ?

    • @zyansheep
      @zyansheep 4 роки тому +1

      I would like to know this as well

    • @Limeayy
      @Limeayy 4 роки тому +1

      Blender?

    • @ItsAsparageese
      @ItsAsparageese 3 роки тому +1

      @Simply Explained wtf did you get hacked? What is this comment? If you're actually pretending to answer unrelated questions by pushing crypto schemes I'm gonna undo my recent subscription to you SOOOO fast

  • @anasali4782
    @anasali4782 3 роки тому

    Simply understood 👌

  • @valdompinga
    @valdompinga 3 роки тому

    perfect!
    thank U!

  • @harsh9558
    @harsh9558 3 роки тому

    Awesome video!

  • @Cortex-A78
    @Cortex-A78 4 місяці тому

    I once compiler chromium for my linux System and I did not enabled ccache. As progress grow The build speed got slower and slower. After enabling ccache it helped me quiet a lot.

  • @MrAnindyabanerjee
    @MrAnindyabanerjee Рік тому

    thanks!

  • @wambugugichuki
    @wambugugichuki 4 роки тому +2

    where have you been?

    • @simplyexplained
      @simplyexplained  4 роки тому +1

      Been working on some ESP32 tutorials. Published without going to subscribers ;)

  • @lakshaykumar8757
    @lakshaykumar8757 3 роки тому

    Great Content :)

  • @WhoDeanyUnchained
    @WhoDeanyUnchained 3 роки тому

    This books in a library analogy won't hold up. It will be like renting movies from Blockbuster.....

  • @HenleyNydia-m6t
    @HenleyNydia-m6t Місяць тому

    Wilkinson Road

  • @WillJustin-l4t
    @WillJustin-l4t Місяць тому

    Archibald Turnpike

  • @McDonaldHedy-u9m
    @McDonaldHedy-u9m Місяць тому

    Farrell Fork

  • @JaneBornstein-f1e
    @JaneBornstein-f1e Місяць тому

    Flatley Circles

  • @NoelBertram-g9e
    @NoelBertram-g9e Місяць тому

    Leannon Expressway

  • @HarrisonConrad-b1t
    @HarrisonConrad-b1t Місяць тому

    Robyn Common

  • @iIiiII11IIIii
    @iIiiII11IIIii 2 роки тому

    Lex Friedmen, hell yea

  • @DennisElvira-t6f
    @DennisElvira-t6f Місяць тому

    Funk Track

  • @RussellCarpenter-p1w
    @RussellCarpenter-p1w Місяць тому

    Halvorson Squares

  • @JoshPorter-l7o
    @JoshPorter-l7o Місяць тому

    Paul Path

  • @KingsleyHood-d3t
    @KingsleyHood-d3t Місяць тому

    Florence Course

  • @FannyRenee-r6b
    @FannyRenee-r6b Місяць тому

    Bill Light

  • @PalmerDevin-l4d
    @PalmerDevin-l4d Місяць тому

    Alessandro Harbors

  • @OlgaWilliams-o8c
    @OlgaWilliams-o8c Місяць тому

    Stamm Camp

  • @JoshuaCasey-z2e
    @JoshuaCasey-z2e Місяць тому

    Huel Expressway

  • @DavidRockwell-k5l
    @DavidRockwell-k5l Місяць тому

    Maggio Station

  • @DorisAstrid-d5w
    @DorisAstrid-d5w Місяць тому

    Sophia Mission

  • @CaliburPANDAs
    @CaliburPANDAs 2 роки тому +1

    cool, now explain now redis works. xD

  • @JohnWilliams-n8n
    @JohnWilliams-n8n Місяць тому

    Leland Highway

  • @StracheyWade-i4v
    @StracheyWade-i4v Місяць тому

    Carroll Rapids

  • @DelmarBlack-d4b
    @DelmarBlack-d4b Місяць тому

    Romaine Camp

  • @FredAugus-k4g
    @FredAugus-k4g Місяць тому

    Grant Greens

  • @JasperMary-d7i
    @JasperMary-d7i Місяць тому

    Medhurst Gardens

  • @deparadigm7866
    @deparadigm7866 4 роки тому +1

    First to comment

  • @IsaacJonas-e2l
    @IsaacJonas-e2l Місяць тому

    Elnora Brook

  • @EdisonGabriel-d8d
    @EdisonGabriel-d8d Місяць тому

    Heaney Loop

  • @GarciaBerton-z5e
    @GarciaBerton-z5e Місяць тому

    Brady View

  • @kvelez
    @kvelez 4 роки тому

    👍

  • @NancyMorrison-i3x
    @NancyMorrison-i3x Місяць тому

    Runolfsdottir Rest

  • @SchshCannxm-v7l
    @SchshCannxm-v7l Місяць тому

    Johanna Loop

  • @EllaBrown-u2l
    @EllaBrown-u2l Місяць тому

    Flatley Spurs

  • @WilhelminaAldridge-z9n
    @WilhelminaAldridge-z9n Місяць тому

    Kub Stream

  • @BoswellCharlotte
    @BoswellCharlotte 2 місяці тому

    79574 Salma Flats