Node.js · Event Loop · Mid-Level · Debugging
How can heavy synchronous work break the event loop?
Short Interview Answer
Long CPU loops block the single JS thread, delaying timers, I/O, and health checks — appearing as latency spikes.
Detailed Explanation
Offload to worker_threads, child processes, or external services. Profile with clinic/0x or CPU profiles. Keep handlers short; batch and yield with setImmediate for cooperative multitasking when needed.