Node.js · Middle · Question 46 of 75

Why do Node.js apps use a database connection pool?

Explanation

Size the pool for the database's limits. Always release a checked-out client, even on errors, or the pool runs dry and requests hang.

Further reading

Problem with a question

Node.js · Middle · question 46

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