Basic Caching Techniques Explained - Spatial, Temporal, Distributed, Write-Through, Write-Back,Aside

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 มิ.ย. 2024
  • In this video, I go through the three types of caching and how it is kept in sync.
    0:00 Intro
    0:30 What is Caching?
    1:20 Spatial Cache
    3:30 Temporal Cache
    5:00 Distributed cache
    6:30 Write-Through Cache
    8:00 Write-Back Cache
    -Hussein
    🎙️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
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Thank you sir for the awesome content got selected for a security analyst role ....wouldn't have been possible without your videos ❤️

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

    Hey , the content on your channel is awesome , earlier I had to Google such stuff and filter through blogs and articles. Here the content is exactly what I have been looking for.
    Great work and Thanks.👍

  • @RC-qi6hs
    @RC-qi6hs 3 ปีที่แล้ว

    Your expressions and teaching method is really good

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

    Useful and extra beneficial info .. thanks for your time in making this kind of content bro 🥰

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

    Came to learn caching, learnt allen wrench as well. Thank you for the brilliant content.

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

    Just bumped into your channel Hussain and I am completely hooked! Absolutely fantastic content my friend, and thanks for taking the time in doing such informative content. Subed :)

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

      Thank you !! Glad you enjoy the content dear and welcome to the community ❤️

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

    Thanks, can't wait for part 2

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

    🤗What you are providing no one can!
    I am getting everything in your channel that I want to learn❤️

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

    Great video. Thank you.

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

    great explanation. i have recently found this channel, and i must say, the content is pretty amazing.Thank you hussein for all the efforts you put in to make videos. if you can then please make some video doing LLD (Low Level Design) that will be of great help.

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

    sometimes I wonder why i didnt find thus channel way earlier

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

      Same feeling

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

      He Should do some collab with other TH-camrs like Gaurav Sen to increase his reach

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

    Interesting choice of topic !
    3:00 maybe a good example is: harddisk readahead. :-)
    L1 is the closest to the CPU.
    Write-back cache... usually used in disk arrays, where it's battery backed so no data is lost in case of loss of power can still keep writing the data to disk.

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

    Thankyu very much. Very well explained :)

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

    Well explained Hussein

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

    Thank you for this detailed presentation Hussein !!
    BTW do you plan on talking about design patterns in near future or any channel recommendation which you find really useful.

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

    Nice explanation bro.

  • @hamedahmadi9291
    @hamedahmadi9291 11 หลายเดือนก่อน

    Well done

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

    Hey Hussein, I like all your videos and love the way you teach. Wish you were my college teacher.
    Could you please make more videos on the System Design, like WhatsApp, TH-cam, Facebook, Instagram, and other famous software?

  • @F.a797
    @F.a797 3 ปีที่แล้ว +6

    What I find fascinating is that most of these concepts you talked about apply at the hardware level. I am taking an assembly course and I was surprised by the amount of similarities between caching on the web vs caching on the processor. I guess computer technology in general is recursive.

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

      Yes the more I read about computer science the more I believe that we are applying the same concepts invented many years ago again and again. That's why I am focusing on the basics. I want to to read the "art of computer programming" but I don't have time :(

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

      haha, I had actually posted a comment about harddisks and disk arrays. :-)

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

    Wow you look good in this video... Nice video as always... You are amazing I love back end and you are making us smarter... Keep inspiring us 🤩

  • @8Trails50
    @8Trails50 3 ปีที่แล้ว

    amazing

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

    Great videos.. Can you think about explaining the same with whichever coding language you are compatible in..

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

    Hi Hussein, thanks for the video! I am using Oracle Coherence (in memory data grid) recently for setting up distributed caching, I wonder what is main diff btw in memory data grid and in memory db?

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

    Please make more videos on distributed caching

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

    Nice Defranco intro.

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

    BTW, 5:00 L1 is the Faster cache. :)

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

    Since a machine can die inbetween writing to cache and db , how is stale data handled in that case?

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

    Hi guys, could you advise me when to use redis, hazelcast and memcache
    I'm choosing a caching technology for our project. I tried to find the comparison between redis and hazelcast and memcache online but they just talk about the basic characteristics, I mean it's quite ambiguity

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

    Hussein - How network call can be reduced in terms of distributed cache wherein cache would be distributed? How distributed cache is faster than database if we have a network call?

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

    So my couch is a temporal cache for my wardrobe?

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

    Sir ,i tried reading about write through and write back policies,and I'm still little confused because It had some features like write allocate and no write allocate,which policy uses which...I mean it's little confusing...I hope u could include these in your next caching video , thank you 🙏❤️

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

    Nice explanation sir.

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

    How about using event sourcing with write back caching mechanism?

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

      Server sent events are text based which isn’t optimal for certain use cases where binary is more efficient.

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

    Mashallah

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

    Hey Hussein, love your content, I think the example you gave was not accurate, I think you have meant to say that you knew you needed one tool from the toolbox, but you decided to take other "close" tools with you just in case you need it. Difference is that if you KNEW you needed these tools and brought them, then its regular caching.
    Please correct me if I am wrong, I dont really have a clue what im saying haha

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

      It's kind of like, you went down stairs to get an other tool and then think: f-ing, I'm not doing this again, let's also take these others, possibly useful tools, not sure which ones I'll need but high chance it will be these.

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

    Listening to this and my brain goes asking " How is this realted to Startrek time travel technology" ♥

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

    First

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

    Is that a samurai sword?

  • @JoeGrimer
    @JoeGrimer 10 หลายเดือนก่อน

    Ah. Are you a boardgamer?