Just use https://github.com/yandex/odyssey :) It's a scalable PgBouncer.
We scaled PgBouncer to 4x throughput
61–67 of 67 posts
Re: We scaled PgBouncer to 4x throughput
#62Just use https://github.com/yandex/odyssey :) It's a scalable PgBouncer.
is there a reason to still pick PgBouncer over these newer ones? Or is PgBouncer mostly the default because everybody runs it
It has two limitations: it is single threaded and it is developed only re-actively. PgBouncer docs used to say that prepared statements can never be supported, in 2022 we supported it in Odyssey and then PgBouncer implemented it too.
In a sense Odyssey is developed to motivate PgBouncer development. To provide alternatives that keep PgBouncer from stagnation.
Yet, I can't say that scalability with SO_REUSEPORT is a good solution.
Re: We scaled PgBouncer to 4x throughput
#63is this for microservice scenarios where you gate access to the psql server through a connection pool thing? because if there is monolithic backend this is not needed. most decent backend frameworks have built-in connection pooling. that covers 98% of use cases for which microservices are not needed, nor recommended.
if your backend app is one big binary per host? Sure. But if your backend app is a shared nothing fork of many processes then this is surely needed.
Re: We scaled PgBouncer to 4x throughput
#64Just use https://github.com/yandex/odyssey :) It's a scalable PgBouncer.
is there a reason to still pick PgBouncer over these newer ones? Or is PgBouncer mostly the default because everybody runs it
Re: We scaled PgBouncer to 4x throughput
#65Re: We scaled PgBouncer to 4x throughput
#66Re: We scaled PgBouncer to 4x throughput
#67Earlier quoted context omitted.
except for perhaps… a scalable pg bouncer? And good nuclear reactors [1]? Not to say I support many Russian political moves, but I think discrediting an entire people and their outputs on Russian politics is brusque - particularly open source ones. [1]: https://www.abc.net.au/news/2026-05-08/russia-nuclear-power-...
Neither pg bouncer nor nuclear reactors are unique inventions in and of themselves - these are just iterations on what has existed previously. Of course russia can take an existing thing and iterate on it (computers, rockets, AK-47, etc.) but that wasn't my point.