prisma-connection-pool-exhaustion

Community

Stabilize Prisma in serverless apps with pools.

Authorchipoto69
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Solves database connection pool exhaustion in serverless Prisma deployments.

Core Features & Use Cases

  • Connection pooling: Uses a pooler (PgBouncer/Prisma Accelerate) between serverless functions and the database to limit per-instance connections.
  • Prisma client singleton: Implements a global singleton PrismaClient to avoid multiple client instances across hot-reloads.
  • Deployment resilience: Applies to commonly used providers (Vercel, AWS Lambda, Netlify Functions) with PostgreSQL or MySQL backends.

Quick Start

  • Configure DATABASE_URL with pooling parameters (connection_limit=1, pool_timeout, connect_timeout) or use a provider-specific pooled URL.
  • Add a global PrismaClient singleton and ensure it is reused across requests.
  • Consider a dedicated pooler like PgBouncer or Prisma Accelerate where supported.
  • Deploy and monitor database connections to verify stability.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prisma-connection-pool-exhaustion
Download link: https://github.com/chipoto69/claude-skills/archive/main.zip#prisma-connection-pool-exhaustion

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.