Neon · Concept
Pooled connection
Use Neon’s pooled endpoint for serverless application traffic. Keep each container’s local pool at one or two connections and create it globally so warm invocations can reuse it.
Last updated
Syntax
const pool = new Pool({ connectionString: process.env.DATABASE_URL, max: 2 });In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Connection poolingDirect connectionPgBouncerTransaction modeServerless connection pooling