Interview Prep/Real-World Interview/Scaling and performance

How do you find the actual bottleneck in a slow multi-service request?

IntermediateScenarioScaling and performance
Answer

Situation read → Guessing per service wastes hours. Distributed tracing shows the critical path directly.

What I'd do →

  1. Pick a slow trace by trace ID from logs, or filter traces by duration in Tempo or Jaeger.
  2. Read the waterfall: which span is longest, and are calls sequential when they could be parallel?
  3. Look for N+1 patterns: 200 tiny DB spans in one request.
  4. Correlate the slow span with that service's metrics (CPU, pool waits) and logs, using the trace ID.
  5. If tracing doesn't exist, add OpenTelemetry auto-instrumentation; it's the fastest path to visibility in most languages.

Why → In a call chain, total latency is the critical path. Tracing shows it; per-service dashboards don't.

Interview tip → Name the N+1 query pattern; it's one of the most common causes.

All Real-World Interview questions Roadmap: Interview readiness

More on Scaling and performance