Caching - Simply Explained

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

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

  • @neutra__l8525
    @neutra__l8525 3 года назад +102

    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 года назад +83

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

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

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

  • @trycatchlearn
    @trycatchlearn 3 года назад +8

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

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

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

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

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

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

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

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

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

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

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

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

    Best explanation among others videos. Thanks

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

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

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

  • @JohnJohnson-kg4ek
    @JohnJohnson-kg4ek 2 года назад

    Absolute lifesaver. Thank you!

  • @Fede-mn8pt
    @Fede-mn8pt 3 года назад +1

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

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

    awesome explanation

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

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

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

    Thanks for the explanation. Great job.!

  • @Life_Has_Changed
    @Life_Has_Changed 4 года назад +14

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

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

    Simply explained ! for REAL !!

  • @Point_breaker_10
    @Point_breaker_10 Месяц назад +1

    Damn, dude, you just nailed it 🫡

  • @bowen-feng
    @bowen-feng 3 года назад

    Very well explained, thank you!

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

    Wow! Could understand very easily! Great 👍

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

    glad to see you listen to lex as well

  • @mohamedtarek-gh4fr
    @mohamedtarek-gh4fr 3 года назад

    wow you hit it, dude you are amazing

  • @UchihaMadara-888
    @UchihaMadara-888 Год назад

    Perfection in a video

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

    Exactly what I needed!

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

    Thank you for the explanation!

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

    Amazing..keep up the good explanation sir

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

    Nice explanation 👍

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

    Really loved this. thank you

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

    Great explanation 👍👍

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

    This was brilliant

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

    Great video! Thank you

  • @gopinathgupta6464
    @gopinathgupta6464 4 года назад +1

    Quite informative 👍

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

    So I finally understand cache

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

    amazing video , subscribed

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

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

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

    very informative

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

    Good explanation bro🙂👍🏽

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

    FINALLY I CAN SEE!!

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

    Cool info=) Thank you!

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

    Nice example this helps

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

    Simply understood 👌

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

    Awesome video!

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

    Thanks for video, awesome!

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

    Explain nicely

  • @anilv4
    @anilv4 4 года назад +2

    What is the difference between cache and buffer?

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

    perfect!
    thank U!

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

    thank you

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

    Great Content :)

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

    thanks!

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

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

  • @wambugugichuki
    @wambugugichuki 4 года назад +2

    where have you been?

    • @simplyexplained
      @simplyexplained  4 года назад +1

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

  • @Cortex-A78
    @Cortex-A78 5 месяцев назад

    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.

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

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

  • @DennisElvira-t6f
    @DennisElvira-t6f 2 месяца назад

    Funk Track

  • @NoelBertram-g9e
    @NoelBertram-g9e Месяц назад

    Leannon Expressway

  • @McDonaldHedy-u9m
    @McDonaldHedy-u9m 2 месяца назад

    Farrell Fork

  • @HarrisonConrad-b1t
    @HarrisonConrad-b1t Месяц назад

    Robyn Common

  • @HenleyNydia-m6t
    @HenleyNydia-m6t Месяц назад

    Wilkinson Road

  • @JoshPorter-l7o
    @JoshPorter-l7o 2 месяца назад

    Paul Path

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

    Lex Friedmen, hell yea

  • @JaneBornstein-f1e
    @JaneBornstein-f1e 2 месяца назад

    Flatley Circles

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

    👍

  • @WillJustin-l4t
    @WillJustin-l4t 2 месяца назад

    Archibald Turnpike

  • @JoshuaCasey-z2e
    @JoshuaCasey-z2e Месяц назад

    Huel Expressway

  • @FannyRenee-r6b
    @FannyRenee-r6b 2 месяца назад

    Bill Light

  • @RussellCarpenter-p1w
    @RussellCarpenter-p1w 2 месяца назад

    Halvorson Squares

  • @MatthewMattingly-p4f
    @MatthewMattingly-p4f 2 месяца назад

    Lyla Streets

  • @KingsleyHood-d3t
    @KingsleyHood-d3t Месяц назад

    Florence Course

  • @OlgaWilliams-o8c
    @OlgaWilliams-o8c Месяц назад

    Stamm Camp

  • @DorisAstrid-d5w
    @DorisAstrid-d5w 2 месяца назад

    Sophia Mission

  • @PalmerDevin-l4d
    @PalmerDevin-l4d 2 месяца назад

    Alessandro Harbors

  • @MabelAdams-t4v
    @MabelAdams-t4v 2 месяца назад

    Howe Lake

  • @IsaacJonas-e2l
    @IsaacJonas-e2l 2 месяца назад

    Elnora Brook

  • @deparadigm7866
    @deparadigm7866 4 года назад +1

    First to comment

  • @DelmarBlack-d4b
    @DelmarBlack-d4b 2 месяца назад

    Romaine Camp

  • @StracheyWade-i4v
    @StracheyWade-i4v Месяц назад

    Carroll Rapids

  • @JohnWilliams-n8n
    @JohnWilliams-n8n 2 месяца назад

    Leland Highway

  • @DavidRockwell-k5l
    @DavidRockwell-k5l Месяц назад

    Maggio Station

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

    cool, now explain now redis works. xD

  • @FredAugus-k4g
    @FredAugus-k4g 2 месяца назад

    Grant Greens

  • @GarciaBerton-z5e
    @GarciaBerton-z5e Месяц назад

    Brady View

  • @JasperMary-d7i
    @JasperMary-d7i 2 месяца назад

    Medhurst Gardens

  • @EdisonGabriel-d8d
    @EdisonGabriel-d8d 2 месяца назад

    Heaney Loop

  • @SchshCannxm-v7l
    @SchshCannxm-v7l 2 месяца назад

    Johanna Loop

  • @NancyMorrison-i3x
    @NancyMorrison-i3x 2 месяца назад

    Runolfsdottir Rest

  • @EllaBrown-u2l
    @EllaBrown-u2l Месяц назад

    Flatley Spurs

  • @WilhelminaAldridge-z9n
    @WilhelminaAldridge-z9n 2 месяца назад

    Kub Stream

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

    79574 Salma Flats