天道酬勤,学无止境

缓存策略

Caching strategy for complex queries of microservices

In a previous cache design is good, basic services will not fall introduced the db level cache, recall, db layer cache key design can be summarized as follows:The cache is only deleted but not updatedOnly one row record is always stored, that is, the row record corresponding to the primary key The unique index only caches the primary key value, not the row record directly (refer to the mysql index idea)Anti-cache penetration design, default one minute to prevent cache breakdown and avalancheDo not cache multi-line recordsPrefaceIn a large-scale business system, by adding a cache to the

2021-05-13 16:32:51    分类:博客    缓存策略   微服务复杂查询