Dude, you are the best, like by far, not just in explaining but you are honestly so much fun to watch
Bought your system design course after this video, I really hope it will be worth it and I am excited for this journey!!
Waiting for this video for a long time 🎉
Beautifully explained. Please keep sharing such imp videos and if possible attach PDF links too where can read further about the topic. Thanks.
Really like your examples used while explaining something. Aspiring to become an engineering like you😀
Neatly explained !
Something I always find missing in videos about cache is how to deal with contracts and data ownership. If I have a service with an OpenAPI spec, I have a testable contract. My service owns the data and manages the contract. If I have a distributed REDIS cache shared by multiple services, potentially across multiple subdomains, how do you avoid this turning into a contract testing nightmare? Good topic for another video? Ps: big fan!
Caches are used to cache repeated queries so that you do not invoke hard compute and return pre calculated values, its usually not designed to reduce latencies. Latency reduction is the by-product of the less compute required to answer the question. Keep that in mind. An SQL query requires alot more compute than returning it from file based or in-memory cache, it's faster and very efficient. Poor cache performance is often due to bad invalidation logic, limited cache sizes or taxing data structures stores inside a cache system. Caching, Deadlocks, Synchronisation, Memory Management and Scheduling are the most simplest yet the hardest concepts in computer science if you don't do it right. The introduction only speaks about keywords at this point, how to make them work for you is the real engineering esp in a "distributed system" where caching is completely different concept comapred to single node or centralised caches. Redis as displayed in this illustration is still a centralised cache if all servers use it as server will see it as single entity behind sentinel cluster. That being said, go and try yourself and see how it works rather than rely on half baked information.
Best video on Caching
can we write recent changes in the cache in when it comes to discard the entry from the cache we write that changes to the database, this way our db does not get behind because first we will be checking for cache, if it is in cache then it is latest, by the way great video sir i admire you
How to handle data updates on cache? Would help if you show strategies too
great viedos. thank you brother
Can we have multiple cache ?
i have one doubt that can we call cache as an database ?
Thank you
One correction: Videos are not stored in the database; instead, they are stored in the file system.
@RishabhGupta-oq6bd