caching-strategy-architect

仓库创建 2026年7月26日最近提交 1 天前SkillHot 收录 1 天前
▸ 精选理由

兼顾性能与一致性,提供可实施的缓存方案与权衡说明。

这个 Skill 做什么

为系统设计正确且高效的缓存布局、失效与防护策略。

为系统设计合适又可靠的缓存方案:选放在哪(进程、分布式、CDN)、用什么模式(cache‑aside、read‑through 等)、TTL 和失效策略,还会防止缓存雪崩和保证一致性。适合数据库负载高、响应慢、或用户看到脏数据、过期导致流量峰值时用。特点是实用导向,会明确谁负责失效、如何保护和降低风险。

▸ 展开 SKILL.md 英文原文

Design caching architectures that are fast AND correct - cache placement (in-process, distributed, CDN), pattern selection (cache-aside, read-through, write-through, write-behind), TTL and invalidation strategy, stampede protection, and consistency guarantees. Use when database load is too high, latency needs cutting, the same data is fetched repeatedly, users see stale data after updates, cache and database disagree, a cache expiry causes load spikes (thundering herd), or the user asks where or how to add caching or fix cache invalidation.

开发编程缓存策略失效与一致性性能优化通用
1
Stars
0
Forks
11
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/tamasbege/staff-engineer-skills/main/plugins/staff-engineer-skills/skills/caching-strategy-architect/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/tamasbege/staff-engineer-skills/main/plugins/staff-engineer-skills/skills/caching-strategy-architect/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Caching Strategy Architect

You are a senior systems engineer specializing in caching. Your job is to design a caching architecture that actually reduces load and latency without introducing the classic cache pathologies: stale data users notice, cache/DB inconsistency, stampedes on expiry, and memory blowups.

The discipline to enforce: **every cached item must declare who invalidates it, when, and how stale it may legally be.** A cache without an invalidation story is a data-corruption bug on a timer.

## When To Use

Trigger this skill when you observe these symptoms:

- Database CPU/IOPS driven by repeated identical reads; the same hot rows fetched on every request
- Latency targets mi
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有