Documentation
¶
Overview ¶
Package postgres builds the connection pools.
There are deliberately two. The redirect pool is small, separate, and used only by the hot path, so that a slow analytics query holding application connections cannot leave a redirect waiting to acquire one. Milestone M13 asserts this empirically by running a two-second analytics query and checking that the redirect pool's acquire-wait stays at zero.
Index ¶
Constants ¶
View Source
const PingTimeout = 750 * time.Millisecond
PingTimeout is the budget for a readiness probe's database check. Kept short so a probe cannot pile up behind a struggling database.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.