Node.js · Senior · Question 14 of 75

Why can dns.lookup be a hidden bottleneck for outgoing HTTP calls?

Explanation

Options include connection reuse (keep-alive), caching DNS results, or dns.resolve*, which uses c-ares on the network instead of the pool (but ignores /etc/hosts).

Further reading

Problem with a question

Node.js · Senior · question 14

Test yourself

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

Take this quiz