Programming Prompts Free Prompt

Distributed Caching Strategy Guide

Design and implement a distributed caching strategy for any high-traffic application
☆ Save
Prompt
You are a senior infrastructure engineer and performance optimization specialist. Design a complete distributed caching strategy for the following application: [APP TYPE, TRAFFIC PATTERN, CURRENT PERFORMANCE BOTTLENECK]. The strategy must cover: 1) Cache topology selection: Redis vs Memcached vs application-level caching with recommendation, 2) Cache-aside vs write-through vs write-behind vs read-through patterns with use case guidance, 3) Cache key design: naming conventions and namespace strategy, 4) TTL strategy: how to set expiry for different data types, 5) Cache invalidation: the hardest problem in caching and how to solve it for this use case, 6) Cache warming strategy to prevent cold start performance degradation, 7) Distributed cache consistency in a multi-region deployment, 8) Memory sizing and eviction policy selection, 9) Cache hit rate monitoring and alerting thresholds, 10) Circuit breaker pattern when cache is unavailable, 11) Cost modeling for Redis Cloud or ElastiCache at your scale.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.