DEV Community

Cover image for Your API Is Slower, but Errors Are Flat. What Should You Check First?
Opsphere
Opsphere

Posted on

Your API Is Slower, but Errors Are Flat. What Should You Check First?

Your API is still returning successful responses. Error rates look normal. Yet users are waiting longer, and support is starting to hear about it.

You open the monitoring dashboard. Latency is up. A deployment happened earlier, but the timing alone does not explain the slowdown.

Where do you start?

A useful investigation begins by narrowing the symptom, comparing possible explanations, and identifying which evidence would change your next decision.

Here is a practical workflow—and how Opsphere can support it.

  1. Define exactly what became slower “Production is slow” is a starting point, but it leaves too much room for unrelated evidence.

Choose an initial scope:

  • The affected service and environment.
  • An endpoint or operation.
  • The approximate time the slowdown began.
  • The latency measurement that changed.
  • A comparable period before the slowdown. For example, consider this hypothetical scenario: The production checkout endpoint shows higher p95 latency starting around 14:10 UTC. The recorded error rate remains stable. We have not yet established whether other endpoints are affected.

That description gives you something specific to investigate.

Also check what your latency metric measures. Application processing time, gateway response time, and browser request duration describe different parts of the experience.

A successful response can still arrive too late to be useful. And an unchanged server-side error rate does not establish that clients are completing requests successfully.

  1. Compare latency with traffic Before attributing the slowdown to a release, examine the workload during the same time window.

Look at request volume, endpoint distribution, and concurrent work where those measurements are available.

Questions worth asking include:

  • Did total traffic increase?
  • Did traffic shift toward a more expensive operation?
  • Did requests begin carrying larger payloads?
  • Did background processing overlap with the affected period? Stable request counts do not necessarily mean stable demand. A service handling more expensive requests can become slower without receiving more requests overall.

What this check gives you: evidence about whether workload changes deserve further investigation.

What it does not give you: proof that traffic caused the slowdown.

  1. Locate where requests spend time If tracing is available, compare representative slow requests with requests from the earlier period.

Inspect the request path for time spent in:

  • Application processing.
  • Database queries.
  • External API calls.
  • Connection acquisition.
  • Other instrumented dependencies. Check several examples. One unusually slow trace may not explain the broader latency change.

Pay attention to instrumentation gaps, too. If a trace does not show a particular operation, that absence is not evidence that the operation was fast.

Without tracing, service metrics and logs may still help narrow the investigation. Be explicit about what they cannot establish.

The objective is to move from “this endpoint is slower” to a more useful question, such as:
Are requests spending longer waiting for a downstream response?

That question points toward a targeted check.

  1. Review runtime conditions and recent changes Now compare the affected window with runtime observations and change history.

Depending on the environment, relevant evidence might include CPU throttling, memory pressure, replica availability, restarts, connection-pool saturation, deployments, or configuration changes.

Keep observations separate from explanations:
Observation: CPU throttling increased during the affected window.
Hypothesis: CPU limits may be contributing to longer processing times.
Next check: Compare latency and throttling across affected instances and review workload changes.

Use the same discipline for releases:
Observation: A deployment preceded the latency increase.
Hypothesis: The release may have changed an expensive execution path.
Next check: Identify the versions serving slow requests and inspect relevant changes.

A timeline helps organize the investigation. It does not establish causation by itself.

  1. Keep a short record of competing explanations Before acting, write down what each explanation has going for it—and what remains missing.

A simple format is enough:

Hypothesis:
Evidence supporting it:
Evidence contradicting it:
Missing information:
Next verification:
Enter fullscreen mode Exit fullscreen mode

For the hypothetical checkout slowdown:

Hypothesis:
A downstream dependency is taking longer to respond.

Evidence supporting it:
Several sampled slow traces include longer dependency spans.

Evidence contradicting it:
Not yet established.

Missing information:
Whether the samples represent the affected requests broadly.

Next verification:
Compare dependency duration across the same endpoint,
time window, and a suitable baseline.
Enter fullscreen mode Exit fullscreen mode

This is an illustrative investigation note, not a confirmed diagnosis.

Its value is that another engineer can review it, challenge it, and continue the investigation.

Where Opsphere fits
Opsphere supports operational investigations using evidence from the systems available in your environment.

For this scenario, a scoped request could be:
Investigate increased p95 latency for the production checkout endpoint between 14:00 and 14:30 UTC. Compare request volume, available runtime signals, and recent changes with the preceding period. Separate observations from hypotheses, identify missing evidence, and suggest the next read-only checks.

Adapt the request to the integrations and permissions actually available.

Review the response for identifiable sources, matching time windows, consistent environment scope, and unresolved gaps. If a relevant source is unavailable, the investigation should retain that limitation.

The useful outcome is a clearer basis for deciding what to inspect next.

A checklist for your next latency investigation
Before blaming the latest deployment, establish:

  • Which requests became slower.
  • Whether workload volume or composition changed.
  • Where available evidence places the additional time.
  • Which runtime conditions and changes overlap with the symptom.
  • What would support or weaken each explanation. When latency rises but error rates stay flat, what do you check first—and what evidence makes you change direction?

Top comments (0)