Can PgDog replace PgBouncer and solve your PostgreSQL connection and sharding bottlenecks? Let's dive into this 2M QPS battle-tested open-source tool.

Your app is finally getting some traction, and boom—your PostgreSQL database starts gasping for air, RAM spikes to 100%, and connections blockages throw 500 errors. Normally, you’d throw PgBouncer at the problem and call it a day. But there is a new pup in the dev yard trying to bite PgBouncer’s ankles: PgDog.
Their headline claims: "Scale PostgreSQL without changing your app." Sounds like standard marketing snake oil, right? But before you skip this, let's look under the hood and see if this dog actually hunts.
To save you from reading boring documentation, here’s the quick rundown. PgDog is an open-source connection pooler, load balancer, and sharding proxy rolled into one neat package for PostgreSQL. It targets three major DB pain points:
And yes, the maintainers claim it’s already battle-tested, serving over 2 million queries per second (2M QPS) across dozens of production deployments. That’s enough to shut up even the most cynical DBAs.
When a tool claims to handle 2M QPS, the developer community on Product Hunt immediately jumped in with some highly technical, nose-poking questions:
One dev noted they put PgDog behind their staging cluster and noticed latency under heavy load was instantly more stable than PgBouncer. Plus, it speaks the native Postgres protocol, making setup feel clean and modern.
A sharp database engineer asked: "During a sharding migration, does PgDog handle ALTER TABLE atomically across all shards, or is that sequencing still on the DBA?"
The creator replied: Yes, PgDog coordinates schema migrations using a two-phase commit protocol to ensure consistency across shards.
If you put a proxy between your app and your DB, what happens when the proxy dies?
The authors designed PgDog to be config-driven. Multiple instances can run simultaneously without talking to each other. It’s HA (High Availability) by design. But there's a catch: Synchronizing configuration updates dynamically during shard rebalancing is locked behind their Enterprise Edition. For the community edition, you’ll have to handle configuration sync yourself.
Another user asked how PgDog handles connection limit quirks when running serverless Postgres stacks like Next.js + Prisma. The dev confirmed PgDog works flawlessly here, minimizing the active connections to save resources. If you spin this up on a cheap VPS in front of your serverless database, you’ll see massive performance gains.
Let’s wrap this up. PgBouncer is like that grumpy, loyal old security guard who does one job and does it perfectly. PgDog is the new, high-tech guard dog that can fetch your mail, guard the door, and do tricks (pooling + load balancing + sharding).
Our survival tips for dev life:
May your database queries always return under 10ms!
Source: Product Hunt