Benchmarking DigitalOcean Managed Postgres Connection Pools Under 200 Concurrent Clients
A tester ran a benchmark on the smallest DigitalOcean managed Postgres plan, which allows only 22 usable connections, to see how connection pooling handles far more clients than that. Direct connections from 200 clients caused 180 to fail at connect time with connection-limit errors, while the 20 that connected ran normally. Transaction-mode PgBouncer pools let all 200 clients run queries without errors, but throughput dropped and median latency rose from about 22 ms to 421 ms. Session-mode pooling accepted extra clients, yet an extra client's first query stalled and then timed out after about 120 seconds. The results show that pools decide which clients get the limited server connections rather than adding capacity.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in