SpinTheMic
Pro

Interview practice question

GC causes p99 spikes in a low-latency service

Backend Engineering · Language Runtimes · Experienced

Your trading-adjacent service has a strict 10 ms p99 target, but GC pauses cause occasional 50 ms spikes. What would you do?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Measure allocation rate and pause sources.
  • Reduce allocation in hot paths.
  • Low-pause GC (ZGC/Shenandoah).
  • Right-size heap; avoid promotion of short-lived data.
  • Off-heap for large long-lived data.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics