by jdreaver · 4y ago · 0 comments
Exploring pgbouncer when you have lots of idle connections is a great tip, but 20 idle connections feels _extremely_ low to me. I've seen postgres databases on AWS Aurora serving over 13,000 transactions per second with hundreds of idle connections (because of client side pooling with a few dozen backend clients) just fine. In fact, around that scale is when we switched _from_ pgbouncer to client side pooling to simplify our architecture, and we noticed no degradation in any major metrics.
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide...
AWS has "only" replaced the storage layer.
For MySQL any of the big users like facebook & co. Are running (heavy) forked mysql versions with changes they need.
[0] https://aws.amazon.com/blogs/database/set-up-highly-availabl...