How we fixed Postgres connection pooling on serverless with PgDog - Circleback
We were afraid to deploy during business hours. Not because of bad code, but because our connection pooler couldn't handle the spike. Every deploy to Vercel spun up a flood of new serverless functions, each one grabbing a database connection. The pooler would buckle, users would see errors, and we'd wait a few minutes for things to settle. For a startup that needs to ship fast, "don't deploy during peak hours" is not a viable strategy.
Circleback