Ever had an incident where latency on a trivial SELECT spikes from a few milliseconds to several seconds, CPU on the Postgres box is basically flat, and there's no slow query or missing index anywhere in sight? That's not a database problem. That's connection pool exhaustion at the PgBouncer la...
Source: [Dev.to](https://dev.to/kbytech/why-your-postgres-is-idle-but-your-api-is-timing-out-pgbouncer-pool-exhaustion-explained-48am)