Many small reads, a few huge invalidations: what I learned alongside Symfony Cache on Redis Cluster
On our e-commerce API, we invalidate a few hundred cache entries all the time, and that is easy with any cache. But switching the active catalogue means invalidating around a million entries at once, and that has to be fast too. With the first version of my cache, it blocked everything else for…