0

I have a nodejs application and I am using sequelize as ORM with Postgres. As explained in documentation of sequelize, here is my code for pooling.

const sequelize = new Sequelize(/* ... */, {
  // ...
  pool: {
    max: 10,
    min: 0,
    acquire: 30000,
    idle: 10000
  }
});

Since Postgres doesn’t have inbuilt pooling (AFAIK), Do I need to install and configure something like pgbouncer, on my server to make pooling work?

Bergi
  • 630,263
  • 148
  • 957
  • 1,375
Nazim
  • 209
  • 5
  • 17

1 Answers1

0

No. Having multiple levels of pooling rarely makes sense, and you can certainly have a client-side pool without a server-side one.

jjanes
  • 37,812
  • 5
  • 27
  • 34