Explain Non-CPU Latency With Prometheus + proxymock
Blog post from Speedscale
A reproducible SRE lab demonstrates how to diagnose p95 latency regressions caused by waiting rather than CPU work, using a checkout API whose pricing client is intentionally limited to two pooled connections while handling eight concurrent users. Prometheus measures request-duration latency, connection-acquisition wait time through Go httptrace, and CPU consumption, showing that a roughly 190 ms p95 request latency is largely explained by a 140 ms p95 connection wait while CPU remains near 0.05 cores. Proxymock records the real inbound request and outbound pricing dependency exchange, then replays an identical 1,200-request workload for baseline and candidate versions, while functional replay and response diffs verify that performance changes do not alter stable response behavior. Raising the client connection budget from 2 to 16 eliminates queueing, reducing replay p95 latency from 173 ms to 46 ms and Prometheus connection-wait p95 to about 1 ms, while increasing throughput without introducing failures or response differences. The lab emphasizes using histograms and saturation metrics first to distinguish wait time from compute time, reserving CPU profiling for work-bound incidents, and cautions that production dependencies must be validated before increasing concurrency limits.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| MCP | 14 | 8,729 | 854 | 211 | -20% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.