Part V — Node.js
Node is the runtime a frontend-heavy engineer is most likely to be asked about in depth. Here the language you already know meets a truly different execution model. The questions are not about APIs. They are about what happens to nine hundred other requests while yours is parsing a large JSON body.
This section covers how the runtime works and how it handles errors. Then it shows how to use more than one core. Last comes the framework most services are written in.
Chapters
| # | Chapter | What it answers |
|---|---|---|
| 01 | The Node.js Event Loop, Async and Errors | How does one thread serve thousands of connections, and which failures do you restart for? |
| 02 | Node.js Performance, Streams and Scaling | Where did the 400 ms go, how do you move data you cannot hold in memory, and do you need more loops? |
| 03 | Express, Hono and Edge Runtimes | A long-lived Node server, or Web-standard handlers that run at the edge? |
What Interviewers Probe For
- Microtask ordering.
setTimeoutagainstsetImmediateagainstprocess.nextTick. The reliable answer names the loop's phases instead of reciting a memorised output. - What blocking looks like. The whole test is to point at a line and say "that stalls every other request".
- Backpressure. Ignoring
write()'s return value causes a memory leak with no limit. Most candidates have never had to know this, so interviewers ask. - Operational against programmer errors. Whether you keep the process alive after an uncaught exception, and why you should not.
- Statelessness. Turning on clustering breaks in-memory sessions, counters and cron jobs. Naming that list unprompted is a strong signal.
Reading Order
Always read 01 first, because every later chapter assumes it. 02 and 03 are independent of each other.
Interview sprint: 01 → 03 → 02.