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 minutes, five minutes in the worst case. Nobody understood what was happening; the business and the customers saw it. So, how do you invalidate a million cache entries fast? Tags are the means, not the…
Soutenez JoliCode en consultant la ressource originale
Lire l'article originalVous aimez découvrir ces sources ?
Soutenez-moi sur Patreon