News for hackers. Stuff that matters.
Re:Gracefully Scaling to 10k PostgreSQL Connections for $35/... by tshannon on Friday June 22, 2018 @01:36PM (#17375803)
Sorry if this is a stupid question, but don't most libraries do connection pooling on their own? Why is something like pgbouncer necessary?
Re:Gracefully Scaling to 10k PostgreSQL Connections for $35/... by bobwaycott on Friday June 22, 2018 @03:22PM (#17376621)
Most libraries do not handle connection pooling on their own. They simply handle opening and closing a connection per query. Hence the write up on pgbouncer being a (relatively) transparent, drop-in solution to handling this when a library does not.
Re:Gracefully Scaling to 10k PostgreSQL Connections for $35/... by merb on Wednesday June 27, 2018 @02:59PM (#17410810)
well transaction pooling is good for most databases.

consider having 10 upstream connections per transaction pool and 10000s of connections to applications. pgbouncer can handle that and every application would only be assigned to a real database if a transaction/query happens and after that the upstream connection would be deassigned.