Skip to content
masterclass Buddy

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.

Subscribe
  • Connection pooling
  • Direct connection
  • PgBouncer
  • Transaction mode
  • Serverless connection pooling

Source: Using Neon from highly elastic serverless platforms. Checked 2026-11-03.