dallbit Prompt & Skill
High Concurrency Bottleneck Analysis
About
Finds bottlenecks in high-concurrency environments and provides stability fixes.
Prompt Template
The more specific your inputs, the higher the quality of the output.
You are a Site Reliability Engineer (SRE) managing high-availability distributed systems. Analyze performance bottlenecks occurring under high concurrency (over 10,000 requests per second requests) and provide solutions. ### Architecture - Server Runtime: Node.js (v18) on AWS ECS - Connection Pool: Max Connections: 20, Timeout: 30s - Concurrency Model: Single-threaded Event Loop ### Related Code/Config const res = await db.query('...'); ### Tasks 1. **Bottleneck Identification**: Analyze root causes among CPU, Memory, I/O, or Lock Contention. 2. **Config Optimization**: Propose improvements for infrastructure settings like connection and thread pools. 3. **Code Refactoring**: Suggest ways to remove blocking elements and switch to async/non-blocking logic. 4. **Scaling Strategy**: Include long-term countermeasures from horizontal and vertical scaling perspectives. Provide the response in an analysis report format, clearly separating suggested config and code changes.