Node.js · Senior · Question 71 of 75

You scale to 40 instances, each with a pool of 20 connections, and PostgreSQL starts refusing connections. What helps?

Explanation

Total connections = instances × pool size, and each PostgreSQL connection is a process with its own memory. A pooler multiplexes many client connections onto few server ones.

Further reading

Problem with a question

Node.js · Senior · question 71

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