(no title)
CAP_NET_ADMIN | 1 year ago
You can have as much connections as you want, but you'll have to trade it for having lower work mem numbers, which hurts performance. Traditional advice is to keep it below 500 per PostgreSQL instance (I'd say physical host).
I've ran dozens of micro services handling thousands of requests per second with a total connection limit of around 200 of which most was still unused - all without any server-side pooler.
samlambert|1 year ago
throwaway313373|1 year ago
> it doesn't matter if they are all active
It does, if the connection is inactive (doesn't hold an open transaction) you should close it or return it to the pool.