Interview Prep/Real-World Interview/Scaling and performance

After enabling a service mesh, latency went up by 15ms per hop. Is that acceptable and what can you do?

AdvancedScenarioScaling and performance
Answer

Situation read → Sidecar proxies add two extra hops per call. A few ms is expected; 15ms per hop suggests misconfiguration or starved proxies.

What I'd do →

  1. Measure precisely: compare proxy-reported upstream time with app time to isolate proxy overhead.
  2. Check sidecar resources: CPU-throttled Envoy proxies add latency. Give them proper requests.
  3. Check mTLS handshakes on every request (connection reuse disabled) and access logging at high volume.
  4. Reduce config size with Sidecar resources in Istio so each proxy only knows about the services it calls.
  5. Consider ambient mode (ztunnel) or Cilium's sidecar-less approach if per-hop overhead matters for deep call chains.

Why → Overhead multiplies with call depth; 15ms × 6 hops is 90ms on a user request.

Interview tip → Ask "what do we need the mesh for?" A mesh adopted only for mTLS might be replaceable by something cheaper.

All Real-World Interview questions Roadmap: Interview readiness

More on Scaling and performance