configuring-serverless-clients
CommunityServerless PrismaClient singleton pattern.
Authordjankies
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Serverless environments can exhaust DB connections if each function creates its own pool. This Skill guides serverless-ready PrismaClient configuration, including a per-instance connection limit and a global singleton pattern.
Core Features & Use Cases
- Per-instance connection_limit=1 to prevent pool exhaustion.
- Global singleton patterns to reuse PrismaClient across invocations.
- Optional PgBouncer guidance for very high concurrency.
Quick Start
Create a single lib/prisma.ts singleton, set DATABASE_URL with connection_limit=1, and reuse the client across handlers.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: configuring-serverless-clients Download link: https://github.com/djankies/claude-configs/archive/main.zip#configuring-serverless-clients Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.