Re:About Database Connection Pool Sizing
by sb8244 on Monday November 12, 2018 @11:52AM
(#18433724)
Coming from ActiveRecord gem, pgbouncer has been great. I'd say the real advantage is transaction level pooling, which will free up connections when they're not actively in a transaction (vs request level isolation). I don't see how this is possible across a large number of isolated servers without a cooperating agent like pgbouncer.
I would advocate for pgbouncer at the DB ingress level and your languages connection pooler at the application level.
I would advocate for pgbouncer at the DB ingress level and your languages connection pooler at the application level.