Neon Connection Pooling & pgBouncer
When running multi-instance MTVL deployments or serverless frontends, connection management is critical to prevent Postgres connection exhaustion.Direct vs. Pooled Connection Strings
Neon provides two distinct connection endpoints for every database branch:Best Practices for MTVL with Neon
- Use Pooled DSN for Backend API: Set
DB_DSNwith-poolerfor runtime API instances. - GORM Connection Pool Tuning: Configure GORM connection pool limits inside Go to match your workload:
- Always enforce SSL: Keep
sslmode=requireenabled in all connection strings.