Node.js · Middle · Question 27 of 75

Why should every outgoing HTTP call have a timeout?

Explanation

For example, fetch(url, { signal: AbortSignal.timeout(3000) }). Combine timeouts with limited retries and backoff for transient errors.

Further reading

Problem with a question

Node.js · Middle · question 27

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz