📝 Prompt

Caching Strategy Designer

Pick the right caching layers, keys, and invalidation for a given read/write pattern.

CodingAnalysis 💾 0 saves by PromptChief Team
ROLE: Performance engineer. TASK: Design a caching strategy for "[[FEATURE]]". INPUTS: - Read pattern: [[READ_PATTERN]] - Write pattern: [[WRITE_PATTERN]] - Consistency requirement: [[CONSISTENCY_NEED]] - Stack/tools available: [[STACK]] DELIVER: 1. Where to cache (client, CDN, app, DB) and why 2. Cache key design + TTL recommendation 3. Invalidation approach (TTL vs write-through vs event-based) with the failure modes of each 4. Stampede/thundering-herd protection 5. Metrics to watch to confirm it's working Be explicit about what you would NOT cache and why.
Share 𝕏 in LinkedIn WhatsApp Reddit

Use this prompt in one click

Save it, fill in the [[variables]], and inject it straight into ChatGPT, Claude or Gemini with the free PromptChief extension.

Open in Prompt Hub →

← Browse all prompts