Hi Neo, thank you for the very helpful article. But I wonder in the write through strategy, how can a cache help us to write data to the DB directly on behalf of our app? (Let’s say I have an API with nodejs, redis as cache db, and mysql for db, how can redis write data to mysql db without an intervention of nodejs logic?)
I guess Neo mistakenly written that cache writes to database, but what I have read in other articles related to Write Through Cache Strategy is that your application writes to both cache and database, thats why it’s recommended where number of write operations are less.
Thanks for clear visuals, Kim. But I couldn't find the difference between Cache Aside strategy and Write-Around strategy. Both are first checking if the data exists in cache. If cache miss, then fetching the data from the database and writing it to cache.
congrats on 150k Neo! :)
hey, thanks Kevin
Cache is probably the closest thing we have to a silver bullet.
But only if you're willing to aim it carefully, invalidation is still hard.
Good breakdown, Neo.
thanks Raul
Hi Neo, thank you for the very helpful article. But I wonder in the write through strategy, how can a cache help us to write data to the DB directly on behalf of our app? (Let’s say I have an API with nodejs, redis as cache db, and mysql for db, how can redis write data to mysql db without an intervention of nodejs logic?)
I guess Neo mistakenly written that cache writes to database, but what I have read in other articles related to Write Through Cache Strategy is that your application writes to both cache and database, thats why it’s recommended where number of write operations are less.
Nice, man. Thank you for the explanation 🙌
What is difference between write around strategy and cache aside strategy. To me both follows same approach.
Thanks for clear visuals, Kim. But I couldn't find the difference between Cache Aside strategy and Write-Around strategy. Both are first checking if the data exists in cache. If cache miss, then fetching the data from the database and writing it to cache.
Not sure if I see the difference between "Cache Aside Strategy" and "Read through Strategy".
¿What are the main differences?