

Lesson 08 · 13 min
Connection pooling and PgBouncer
Why PostgreSQL connections are expensive, PgBouncer modes, how to size a pool and serverless pitfalls.
13 minLesson 8 of 10Practice includedAsk AI on any point
The app works locally and on staging, but under load the database answers too many connections or gets slower even though the CPU is idle. Often the cause is not the queries but the number of connections.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.