Interview practice question
Node.js uses one core on a big machine
Backend Engineering · Language Runtimes · Experienced
Your Node.js API runs on 8-core machines, but CPU shows one core at 100 percent and the rest idle, and throughput is capped. What do you do?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- One JS thread per process.
- Run multiple processes: cluster module, PM2, or more containers.
- Prefer one process per container with orchestration scaling.
- Worker threads for CPU tasks.
- Profile hot code too.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.