I don't like caches
I don’t like caches In fact I do, but not for everything. I like caching for immutable resources and for side effects free computation. I don’t like caching for mutable resources and computations. Let me explain why. Cache for immutable resources At MyCoach when we rebuilt our storage service we chose not to support updates. When a file is uploaded it is assigned a unique UUID, this UUID will be part of the link to a file for it’s whole lifetime. If you need to update a file you’ll perform a delete, reupload a new file, get a new link, and update the resource with a reference to your file with a new link. ...