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

  Рет қаралды 47,640

Hussein Nasser

Hussein Nasser

Күн бұрын

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 жыл бұрын
Thank you sir for the awesome content got selected for a security analyst role ....wouldn't have been possible without your videos ❤️
@theanonymoustalk
@theanonymoustalk 3 жыл бұрын
Congratulations
@shahlazulkarnine9628
@shahlazulkarnine9628 2 жыл бұрын
Came to learn caching, learnt allen wrench as well. Thank you for the brilliant content.
@mohammedfaisal1397
@mohammedfaisal1397 3 жыл бұрын
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.👍
@stevenalexander6262
@stevenalexander6262 3 жыл бұрын
sometimes I wonder why i didnt find thus channel way earlier
@sumanto_pal
@sumanto_pal 3 жыл бұрын
Same feeling
@sumanto_pal
@sumanto_pal 3 жыл бұрын
He Should do some collab with other KZbinrs like Gaurav Sen to increase his reach
@robertdowney1823
@robertdowney1823 3 жыл бұрын
🤗What you are providing no one can! I am getting everything in your channel that I want to learn❤️
@autohmae
@autohmae 3 жыл бұрын
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.
@simond3640
@simond3640 3 жыл бұрын
Thanks, can't wait for part 2
@RC-qi6hs
@RC-qi6hs 3 жыл бұрын
Your expressions and teaching method is really good
@4everHawii
@4everHawii 3 жыл бұрын
Useful and extra beneficial info .. thanks for your time in making this kind of content bro 🥰
@CloudA2Z
@CloudA2Z Жыл бұрын
Well explained Hussein
@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.
@SmellsGoodfragrancereviews
@SmellsGoodfragrancereviews 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 ❤️
@hamedahmadi9291
@hamedahmadi9291 Жыл бұрын
Well done
@rubaiyathussain3124
@rubaiyathussain3124 3 жыл бұрын
Nice explanation bro.
@anumsheraz
@anumsheraz 2 жыл бұрын
Thankyu very much. Very well explained :)
@8Trails50
@8Trails50 3 жыл бұрын
amazing
@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.
@F.a797
@F.a797 3 жыл бұрын
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 жыл бұрын
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. :-)
@basavaraj2065
@basavaraj2065 3 жыл бұрын
Great videos.. Can you think about explaining the same with whichever coding language you are compatible in..
@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 🤩
@soulofjack7294
@soulofjack7294 3 жыл бұрын
Please make more videos on distributed caching
@omarmoataz
@omarmoataz 3 жыл бұрын
Nice Defranco intro.
@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?
@utkarshsinha6859
@utkarshsinha6859 3 жыл бұрын
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, KZbin, Facebook, Instagram, and other famous software?
@tamimsyedr691
@tamimsyedr691 3 жыл бұрын
BTW, 5:00 L1 is the Faster cache. :)
@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?
@gauthamr906
@gauthamr906 3 жыл бұрын
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
@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 🙏❤️
@johannsebastianbach3411
@johannsebastianbach3411 3 жыл бұрын
So my couch is a temporal cache for my wardrobe?
@shaikhmohammedshoebhussain7903
@shaikhmohammedshoebhussain7903 2 жыл бұрын
Mashallah
@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.
@justinoak9196
@justinoak9196 3 жыл бұрын
Listening to this and my brain goes asking " How is this realted to Startrek time travel technology" ♥
@samerelias1000
@samerelias1000 3 жыл бұрын
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.
@anigameKash
@anigameKash 2 жыл бұрын
Nice explanation sir.
@nifeneny
@nifeneny 3 жыл бұрын
Is that a samurai sword?
@justinlan8739
@justinlan8739 3 жыл бұрын
First
@JoeGrimer
@JoeGrimer 11 ай бұрын
Ah. Are you a boardgamer?
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 35 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 108 МЛН
How does Caching on the Backend work? (System Design Fundamentals)
22:45
Software Developer Diaries
Рет қаралды 31 М.
Adding a cache is not as simple as it may seem...
13:29
Dreams of Code
Рет қаралды 105 М.
Why do CPUs Need Caches? - Computerphile
6:06
Computerphile
Рет қаралды 310 М.
Proxy vs Reverse Proxy Server Explained
14:18
Hussein Nasser
Рет қаралды 130 М.
Can Redis be used as a Primary database?
12:18
Hussein Nasser
Рет қаралды 50 М.
Caching Pitfalls Every Developer Should Know
6:41
ByteByteGo
Рет қаралды 111 М.
Cache Systems Every Developer Should Know
5:48
ByteByteGo
Рет қаралды 456 М.
Consistent Hashing | The Backend Engineering Show
23:54
Hussein Nasser
Рет қаралды 39 М.
Basic System Design for Uber or Lyft | System Design Interview Prep
16:18
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 3,1 МЛН
Gizli Apple Watch Özelliği😱
0:14
Safak Novruz
Рет қаралды 7 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2 МЛН
Clicks чехол-клавиатура для iPhone ⌨️
0:59