Softwr

Databases · head to head

Nhost vs PgBouncer

Nhost logo

Nhost

Databases

Postgres backend with GraphQL, authentication, storage and functions, from $25 a month

From
Free
Free plan
Yes
PgBouncer logo

PgBouncer

Databases

Lightweight open-source connection pooler for PostgreSQL

From
Free
Free plan
Yes

The short version

  • Nhost is a hosted backend platform; PgBouncer is an open-source connection pooler.
  • PgBouncer is free; Nhost starts at $25/mo.
  • Only Nhost lists postgres database; only PgBouncer lists session pooling.
  • Where Nhost falls short: the API layer is Hasura GraphQL, so teams who want a REST-first or other access pattern are working against the platform's default.
  • Where PgBouncer falls short: works with PostgreSQL only; it cannot pool connections for other database engines.

How do Nhost and PgBouncer differ?

Nhost and PgBouncer differ on pricing model and platforms. Only the attributes on which Nhost and PgBouncer actually diverge.

Attributes where Nhost and PgBouncer differ
AttributeNhostPgBouncer
Pricing modelPer month plus usageOpen-source
PlatformsWebLinux, macOS, Windows

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Nhost.

Which features does each one have?

They share no listed features; 8 appear only for Nhost and 9 only for PgBouncer. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Nhost

  • Postgres database
  • Hasura GraphQL
  • Authentication
  • Storage
  • Functions
  • AI toolkit
  • Nhost Run
  • Infrastructure as code

Only in PgBouncer

  • Session pooling
  • Transaction pooling
  • Statement pooling
  • Low memory use per connection
  • Online reconfiguration of most settings
  • Online restart and upgrade without dropping clients
  • Backends on different hosts
  • TLS support via OpenSSL

What is each one used for?

Nhost is most often brought in for A startup that wants Postgres, auth and a GraphQL API without writing a backend; PgBouncer for reducing open connections to a busy PostgreSQL server. The jobs each tool is most often brought in to do.

Nhost

  • A startup that wants Postgres, auth and a GraphQL API without writing a backendnot PgBouncer
  • A React or Vue team using real-time GraphQL subscriptionsnot PgBouncer
  • A developer who wants backend config in git through the CLInot PgBouncer
  • An app that needs file storage and auth plus a few server functionsnot PgBouncer

PgBouncer

  • Reducing open connections to a busy PostgreSQL servernot Nhost
  • Pooling connections from serverless or short-lived application processesnot Nhost
  • Fronting databases spread across several hostsnot Nhost
  • Rolling upgrades without dropping client connectionsnot Nhost

Where do Nhost and PgBouncer fall short?

PgBouncer's most cited limit: works with PostgreSQL only; it cannot pool connections for other database engines. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Nhost

  • The API layer is Hasura GraphQL, so teams who want a REST-first or other access pattern are working against the platform's default
  • Starter projects are paused after one week of inactivity, which makes the free tier unsuitable for anything that must stay available
  • Point-in-time recovery starts at $100 on top of the plan, so recovery beyond the 7 days of daily backups is an extra cost
  • Compute, custom domains ($10 per project per month), egress and storage overage are metered, so the plan fee understates the running bill for a busy app
  • Team costs $599 a month, a large jump from Pro at $25, so growing teams that need the Team tier's limits face a steep step

PgBouncer

  • Works with PostgreSQL only; it cannot pool connections for other database engines
  • Transaction pooling disables session features such as LISTEN, SET/RESET and session-level advisory locks
  • Windows support is limited to MinGW builds; Cygwin and Visual toolchains are not supported
  • Configured through files and an admin console, with no built-in graphical interface
  • Does not provide failover, replication management or read-replica load balancing

How much do Nhost and PgBouncer cost?

Nhost has a free plan, with paid plans from $25/mo; PgBouncer is free to use. Plan by plan below, from each vendor's own pricing page.

Nhost

Free
  • StarterFree
    • 1 project and 1 workspace member
    • 1 GB database, 1 GB storage, 5 GB egress
    • 10 functions with 10 second execution time
  • Pro$25/mo
    • $15 in compute credits included
    • 10 GB database, 50 GB storage, 50 GB egress
    • 50 functions, 180 second execution time
  • Team$599/mo
    • $15 in compute credits included
    • Everything in Pro, with 600 second function execution time
  • EnterpriseOn request
    • Custom pricing
    • Dedicated clusters available as an add-on

PgBouncer

Free

No published plan breakdown. See the PgBouncer review.

Which should you pick?

Choose Nhost if

  • You need postgres database.
  • You want to start without paying.
  • You also want hasura graphql.

Choose PgBouncer if

  • You need session pooling.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want transaction pooling.

Questions people ask

Is Nhost or PgBouncer better?
It depends on the job. Nhost fits a startup that wants Postgres, auth and a GraphQL API without writing a backend; PgBouncer fits reducing open connections to a busy PostgreSQL server. Nhost starts at Free and PgBouncer at Free.
Which is cheaper, Nhost or PgBouncer?
Nhost starts at Free and PgBouncer at Free.
Does Nhost or PgBouncer run on more platforms?
Nhost runs on Web. PgBouncer runs on Linux, macOS, Windows.
Can I use Nhost for free?
Both have a free tier, so you can try either at no cost before committing.
What is Nhost best used for?
Nhost is most often used for a startup that wants postgres, auth and a graphql api without writing a backend, a react or vue team using real-time graphql subscriptions, a developer who wants backend config in git through the cli, an app that needs file storage and auth plus a few server functions. Of those, a startup that wants postgres, auth and a graphql api without writing a backend and a react or vue team using real-time graphql subscriptions are not what PgBouncer is typically brought in for.
What can Nhost do that PgBouncer cannot?
Nhost covers Postgres database, Hasura GraphQL, Authentication, Storage. PgBouncer covers Session pooling, Transaction pooling, Statement pooling, Low memory use per connection.

Answered from the vendors’ own pages

Nhost: How much does Nhost cost?

Starter is $0, Pro is $25 a month and Team is $599 a month, plus metered usage beyond included amounts. Enterprise is custom.

PgBouncer: What is PgBouncer used for?

PgBouncer is a lightweight connection pooler for PostgreSQL. It lets many client connections share fewer server connections, which lowers the load of holding many connections open.

Source
Nhost: Does the free plan pause?

Yes. Starter projects are paused after one week of inactivity.

PgBouncer: What pooling modes does PgBouncer support?

It supports session, transaction and statement pooling. Session pooling supports all PostgreSQL features, while transaction and statement pooling restrict some session-based features.

Source
Nhost: Are there user limits on auth?

No. The pricing page lists unlimited total users on every plan.

PgBouncer: Does PgBouncer run on Windows?

The project's build instructions support Windows only through MinGW. It states that Cygwin and Visual toolchains are not supported, and that LDAP is not supported on Windows.

Source
PgBouncer: What do I need to build PgBouncer from source?

The README lists a C11-capable compiler, Libevent 2.0 or newer, pkg-config and, for TLS, OpenSSL 1.0.1 or newer. Optional components include c-ares, LDAP libraries and PAM libraries.

Source
Share

Related pages

Other head to heads