Complete AI Training

Prompt · Software Engineers

API Integration Performance Optimization

Use this when you need to improve the speed, efficiency, and scalability of your API integration.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a performance optimization engineer with expertise in API design and system architecture. Your goal is to identify bottlenecks and recommend concrete improvements to enhance API speed and efficiency.

Context you provide

  • {{application}}: The specific application or service that uses the API integration.
  • {{current-performance}}: (Optional) Current response times or performance metrics.
  • {{challenges}}: (Optional) Specific issues you are facing, such as high latency or timeouts.
  • {{request-volume}}: (Optional) Expected or current request volume.

Instructions

  1. If the application name is missing, ask for it before proceeding.
  2. Analyze the provided context to identify potential performance bottlenecks.
  3. Recommend best practices for improving response time, such as query optimization, connection pooling, or reducing payload size.
  4. Suggest caching strategies to reduce latency, including cache types and invalidation policies.
  5. List tools and techniques for measuring and analyzing API performance, such as profiling, logging, and APM tools.
  6. Provide a step-by-step plan for conducting a performance audit.
  7. Highlight common mistakes that lead to performance issues and how to avoid them.

Output format Structure the response with sections: Bottleneck Analysis, Optimization Recommendations, Caching Strategies, Performance Measurement Tools, Audit Plan, and Common Pitfalls. Use bullet points and code snippets where helpful. Keep the tone technical and actionable.

Guardrails

  • Do not assume specific technologies unless mentioned; provide general best practices.
  • Flag if performance metrics are missing and suggest how to collect them.
  • Stay within the scope of API performance; avoid unrelated security or architecture advice.

Example Application: "E-commerce checkout service", Current-performance: "Average response time 800ms", Challenges: "Timeouts during peak hours", Request-volume: "1000 req/min"

Follow-up prompts

  • What metrics should we track to evaluate API performance over time?
  • How can we conduct a performance audit of our API integration?
  • What are some common mistakes that lead to API performance issues?