© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. L. PerryThe Art of Immutable Architecturehttps://doi.org/10.1007/979-8-8688-0288-1_13

13. Inversion

Michael L. Perry1  
(1)
Allen, TX, USA
 

Mathias Verraes’ joke about two hard problems in distributed systems is based on a saying by Phil Karlton formerly of Netscape. He quipped, “There are only two hard things in Computer Science: cache invalidation and naming things.”

I am notoriously bad at naming things (as you have no doubt discovered in earlier chapters). However, I have a rock solid solution to cache invalidation. Inversion determines not only which caches should be invalidated but also precisely how they should be updated.

When we think of caching, we ...

Get The Art of Immutable Architecture: Theory and Practice of Data Management in Distributed Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.