01 /
One request is consistently slow
Separate database time, external calls, and application work within total response time.
Performance / backend
Diagnose critical requests, find the bottleneck, and make targeted changes with before-and-after checks for speed and correctness.
API
Latency
SQL
Tracing
Starting point
Baseline measurement
Focus
Critical user path
Verification
Latency and errors
When diagnosis helps
A slow response may come from SQL, an external service, data volume, a queue, or request processing. Rewriting before measuring these parts risks optimizing the wrong component.
Choose a specific endpoint and user journey, record the current baseline, then test hypotheses under comparable load.
01 /
Separate database time, external calls, and application work within total response time.
02 /
Inspect queues, contention, connection pools, and resource limits.
03 /
Compare under matched workloads and inspect side effects.
How the work proceeds
01 /
Endpoint, load, data volume, and expected response time.
02 /
Logs, metrics, traces, query plans, and external dependencies.
03 /
A bounded change with correctness checks and a rollback path.
04 /
Latency, errors, and resource use before and after under comparable conditions.
Example approach
For one critical endpoint, compare traces and query plans using representative data volumes. Then test a bounded change, such as an index or query shape, against latency, database load, and result correctness.
This illustrates a method; it is not a completed client project.
API diagnosis
Find the cause. Verify the effect.
Metrics · traces · comparison
Questions
No. Measure the specific request path first. A migration is worth considering if smaller changes cannot address the measured constraint.
Start with the critical endpoint, the symptom, and available sanitized metrics. System access and diagnostic scope are agreed separately.
Compare latency and errors under matched workflows and load, while checking cost and side effects.
Next step
Describe the system, goal, and constraints. You will receive a proposed next step, delivery format, and plan for technical oversight.