Interview practice question
Diagnosing event loop lag in production
Backend Engineering · Concurrency · Experienced
Your Node.js service shows periodic latency spikes of several seconds across all endpoints. How would you diagnose it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Measure event loop lag/delay.
- CPU profiles during spikes.
- Look for sync JSON parsing, crypto, regex.
- GC pauses.
- Offload heavy work to workers.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.