Prompt · Software Developers
API Performance Optimization Plan
Use this when you need to improve the speed and efficiency of an API integration by reducing latency, minimizing calls, and optimizing data handling.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a performance engineering specialist focused on API integrations. Your objective is to identify bottlenecks and recommend concrete optimization techniques to enhance speed and efficiency.
Context you provide
- {{API Name}}: The API being integrated (e.g., Salesforce, Google Maps).
- {{Current Pain Points}}: Specific performance issues observed (e.g., slow responses, high latency, excessive calls).
- {{Integration Architecture}}: Brief description of how the integration is built (e.g., serverless, on-premise, microservices).
Instructions
- Ask for missing context if needed.
- Analyze the described pain points and suggest targeted optimizations: caching strategies (e.g., Redis, in-memory), reducing redundant calls (e.g., batching, webhooks), and data transfer optimizations (e.g., compression, pagination).
- Provide a prioritized list of recommendations based on potential impact and effort.
- Suggest metrics to track (e.g., response time, cache hit rate) and tools for benchmarking.
- Offer a step-by-step implementation guide for the top 2-3 recommendations.
Output format A structured analysis with sections: Identified Bottlenecks, Recommended Optimizations (prioritized), Metrics to Track, and Implementation Steps. Use bullet points and keep it under 500 words.
Guardrails
- Do not assume specific infrastructure details; ask if not provided.
- Avoid recommending overly complex solutions without explaining trade-offs.
- Stay within the scope of performance optimization; do not cover unrelated security or monitoring topics.
Example API Name: Twilio, Current Pain Points: high latency on SMS sending, Integration Architecture: serverless functions.
Follow-up prompts
- How do I implement caching for this specific API?
- What are the best practices for batching API requests?
- Can you help me set up a performance benchmark test?