HTTP Caching Strategist

Design a comprehensive HTTP caching strategy with this AI prompt, optimizing API response times and server load while ensuring data freshness.

What this prompt does

  • Designs a comprehensive HTTP caching layer to optimize API response times and reduce server load.
  • Balances performance optimization with data freshness guarantees to prevent data inconsistency.
  • Provides implementation steps for cache key generation, TTL management, and monitoring strategies.

How to use this prompt

  1. Fill in the [INSERT YOUR API ENDPOINTS AND THE TYPES OF DATA THEY RETURN], [INSERT YOUR TRAFFIC PATTERNS AND EXPECTED REQUEST VOLUME], [INSERT HOW FRESH YOUR DATA NEEDS TO BE FOR DIFFERENT ENDPOINTS], [INSERT YOUR CURRENT TECH STACK AND INFRASTRUCTURE], and [INSERT YOUR PERFORMANCE TARGETS AND AN…
  2. Example: "My API endpoints include /user/profile and /product/list, returning JSON data. I expect 10,000 requests per minute, with peak traffic during business hours. Data freshness is critical for /user/profile, requiring updates every 5 minutes. My tech stack includes AWS, Node.js, and Redis. M…

Free prompt — copy, paste and run. Part of the Coding prompts collection in the God of Prompt library.

Related Coding prompts