Nice article !!

There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton

I've seen many caches breaking good models, adding unnecessary coupling and being premature optimizations and poorly invalidated.

Those were the bad ones

The good ones are functional caches, where business rules clearly state when is valid to cache a value and how to invalidate them

Written by

I’m senior software engineer specialized in declarative designs. S.O.L.I.D. and agile methodologies fan.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store