A reusable sack of DB connections that a fleet of requests borrows and returns.

A pool shares a few Postgres connections among many requests

A connection pool lets many application requests borrow a smaller number of PostgreSQL sessions over time. Reuse amortizes connection setup and limits simultaneous leases, but does not make an overloaded database faster by itself. The pool creates another queue whose capacity, waiting time, and cancellation behavior belong to the request budget. Treat that queue as part of the service, not as an invisible implementation detail. ...

February 13, 2027 · 5 min · XB Field Notes
An observe-decide-act diagram beside the words Budget every pool, across all replicas.

Connection caps guard a shared database

A connection cap limits one owner’s demand; it does not automatically cap every application sharing a database. The useful budget is the sum of physical connections that can reach each backend, including idle pooled connections. Begin with the backend’s usable slots, then allocate them across all callers and deployment states. ...

September 5, 2026 · 6 min · XB Field Notes