~/talk

The world's worst pool party: Connection management with Prisma

Talkat Prisma Day 2021 · 2021-06-29..06-30· [databases, serverless]
links:none on file
slides:none on file

Explains why Postgres and hosted tiers hit connection limits (Heroku dev ≈20, AWS formula gives ≈198 for t2 small), shows the Prisma Client pool using the CPU2+1 default and an example pool of four, and demonstrates the serverless failure mode: 200 AWS lambda instances × ~5 connections = ~1000 connections overwhelms the DB. Recommends instantiating one Prisma Client, tuning pool timeout or setting pool size to one, and deploying pgBouncer or a queuing + batch-write pattern or switching to Aurora Serverless V2*.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Overview
  3. 5:05Connection pool
  4. 6:35Queue management
  5. 7:57One Prisma Client
  6. 9:43Prisma Client Tips
  7. 12:18Connection Limits
  8. 14:52Serverless
  9. 16:32The problem
  10. 19:13pgbouncer
  11. 20:35Architecture
  12. 23:02Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.