All jobs / Backend developer / Backend Languages

Backend developer interview question · 1–3 years

A Node service that normally answers in 20 ms starts timing out on every endpoint whenever one particular report is requested.

What do you suspect first?

The strongest answer

Something on that path runs synchronously — a long loop, a large JSON parse, a sync file or crypto call — and it blocks the single thread that runs your JavaScript, so every other request waits behind it

Why it works

Exactly — one thread runs your code, so a synchronous stretch stalls everyone, not only the caller.

What a good answer covers

Answers that fall short

Who gets asked this

More Backend Languages questions