‪Many years ago I was told by a senior dev that caching is one of the hardest things I'll ever come across. At the time I didn't know what he meant, but these past few days I'm starting to understand‬ what he meant. It's not using the cache itself, it's the cache management that is hard. Determining what needs to be cached, when a cache should be invalidated, how long should something be cached etc. It's pretty insane when you start having to compare it with the requirements.

  • 2
    Caching and using cache is not too hard. Cache invalidation is the hard part. The more accurate you can invalidate the cache the more/longer you will cache.
Add Comment