Caching Strategy Design

D

Daniel Okoye

@daniel-okoye

·

Design a caching strategy by analyzing data access patterns.

48 copies0 forks
Share this prompt:
Design a caching strategy step by step.

System description:
{{system_description}}

Data access patterns:
{{access_patterns}}

Current performance: {{current_metrics}}

Think through systematically:

1. CACHE CANDIDATES: What data is read frequently but changes rarely?

2. CACHE LAYERS: Application cache, CDN, database query cache?

3. CACHE TOPOLOGY: Local, distributed, or multi-tier?

4. INVALIDATION STRATEGY: Time-based, event-based, or manual?

5. CONSISTENCY REQUIREMENTS: Can we tolerate stale data? For how long?

6. CACHE KEY DESIGN: How should keys be structured for efficiency?

7. EVICTION POLICY: LRU, LFU, or TTL-based?

8. CAPACITY PLANNING: How much memory is needed?

9. CACHE STAMPEDE: How do we prevent thundering herd?

10. MONITORING: What metrics indicate cache health?

11. IMPLEMENTATION: Recommended technology and configuration.

Details

Category

Coding

Use Cases

Caching strategy designPerformance optimization planningData access optimization

Works Best With

claude-opus-4.5gpt-5.2gemini-2.0-flash
Created Updated Shared

Related Prompts

Create your own prompt vault and start sharing