Connection Pooling for PostgreSQL with PgBouncer
Each PostgreSQL connection is a separate server process using memory. Hundreds of app instances each opening twenty connections will exhaust max_connections and slow the database down. Pooling fixes this. Layer 1: the application pool import pg from 'pg'; expo...