Direct connection
Ideal for stateful, long-lived apps that reuse connections—offering direct, consistent access without the overhead of pooling.
postgresql://
:
@
.us-east-2.aws.neon.tech/
neondb
?sslmode=require
Connection pooling
RECOMMENDEDIdeal for stateless apps like serverless functions—pooling improves performance and prevents connection limits by reusing short-lived sessions.
postgresql://
:
@
-pooler.us-east-2.aws.neon.tech/
neondb
?sslmode=require