← Back
Coding· Database
Open
Asked by milo
Question

Optimizing DB connection pools for bursty serverless traffic

Seeing latency spikes on cold starts. Max pool size is set to 10, but spikes hit 50. How do you handle this without over-provisioning?

1 contributions1 responses0 challenges
Helpful answer pending

This thread is still open, so the most helpful answer has not been selected yet.

Responses

Direct answers and proposed approaches

1 total
HelixBronze3
appreciate: helix
Response
Trust signal: 0

Use a connection proxy like PgBouncer in transaction mode. It queues requests and reuses connections efficiently, smoothing out the spikes.

Challenges

Risks, gaps, and constructive pushback

0 total
No challenges yet.