Softwr

Cybersecurity · head to head

Ory vs PgBouncer

Ory logo

Ory

Cybersecurity

Open-source identity, authentication, and permissions infrastructure

From
Free
Free plan
Yes
PgBouncer logo

PgBouncer

Databases

Lightweight open-source connection pooler for PostgreSQL

From
Free
Free plan
Yes

The short version

  • PgBouncer is an open-source connection pooler.
  • PgBouncer is free; Ory starts at $64/mo.
  • Only Ory lists authentication APIs; only PgBouncer lists session pooling.
  • Where Ory falls short: SAML SSO and multi-region deployments are reserved for the custom-priced Enterprise tier.
  • Where PgBouncer falls short: works with PostgreSQL only; it cannot pool connections for other database engines.

How do Ory and PgBouncer differ?

Ory and PgBouncer differ on pricing model (Usage-based against Open-source), platforms and category (Cybersecurity against Databases). Only the attributes on which Ory and PgBouncer actually diverge.

Attributes where Ory and PgBouncer differ
AttributeOryPgBouncer
Pricing modelUsage-basedOpen-source
PlatformsWeb, APILinux, macOS, Windows
CategoryCybersecurityDatabases

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

Not yet recorded: founded for PgBouncer.

Which features does each one have?

They share no listed features; 6 appear only for Ory 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 Ory

  • Authentication APIs
  • Permissions engine
  • Machine-to-machine tokens
  • B2B organizations
  • SAML SSO
  • Multi-region deployments

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?

Ory is most often brought in for adding self-hosted or cloud identity to a new product; PgBouncer for reducing open connections to a busy PostgreSQL server. The jobs each tool is most often brought in to do.

Ory

  • Adding self-hosted or cloud identity to a new productnot PgBouncer
  • Implementing fine-grained permission checksnot PgBouncer
  • Supporting B2B organizations and multi-tenancynot PgBouncer
  • Building machine-to-machine authentication for microservicesnot PgBouncer

PgBouncer

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

Where do Ory and PgBouncer fall short?

Ory's most cited limit: SAML SSO and multi-region deployments are reserved for the custom-priced Enterprise tier. PgBouncer's: 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.

Ory

  • Production and Growth plans are billed annually ($770/year and $9,350/year), which is a larger upfront commitment than monthly-only competitors
  • SAML SSO and multi-region deployments are reserved for the custom-priced Enterprise tier
  • Usage-based pricing across aDAU, M2M tokens, and permission checks makes cost estimation more complex than flat per-MAU billing

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 Ory and PgBouncer cost?

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

Ory

Free
  • DeveloperFree
    • Community support
    • No production environments
  • Production$64/mo
    • $21 monthly credit included
    • 1 production environment
    • 3 staging environments
  • Growth$779/mo
    • $255 monthly credit included
    • 2 production environments
    • B2B organizations (max 3)

PgBouncer

Free

No published plan breakdown. See the PgBouncer review.

Which should you pick?

Choose Ory if

  • You need authentication apis.
  • You want to start without paying.
  • You work on Web, API.
  • You also want permissions engine.

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 Ory or PgBouncer better?
It depends on the job. Ory fits adding self-hosted or cloud identity to a new product; PgBouncer fits reducing open connections to a busy PostgreSQL server. Ory starts at Free and PgBouncer at Free.
Which is cheaper, Ory or PgBouncer?
Ory starts at Free and PgBouncer at Free.
Does Ory or PgBouncer run on more platforms?
Ory runs on Web, API. PgBouncer runs on Linux, macOS, Windows.
Can I use Ory for free?
Both have a free tier, so you can try either at no cost before committing.
What is Ory best used for?
Ory is most often used for adding self-hosted or cloud identity to a new product, implementing fine-grained permission checks, supporting b2b organizations and multi-tenancy, building machine-to-machine authentication for microservices. Of those, adding self-hosted or cloud identity to a new product and implementing fine-grained permission checks are not what PgBouncer is typically brought in for.
What can Ory do that PgBouncer cannot?
Ory covers Authentication APIs, Permissions engine, Machine-to-machine tokens, B2B organizations. PgBouncer covers Session pooling, Transaction pooling, Statement pooling, Low memory use per connection.

Answered from the vendors’ own pages

Ory: What does Ory cost?

Ory has a free Developer tier, a Production plan at $770/year including a $21 monthly credit, a Growth plan at $9,350/year including a $255 monthly credit, and custom Enterprise pricing.

Source
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
Ory: How is usage metered?

Beyond the included credit, Ory charges per average daily active user (aDAU), per machine-to-machine token, and per permission check, with lower per-unit rates on the Growth plan.

Source
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
Ory: What payment methods are supported?

Ory accepts credit cards (Visa, MasterCard, Amex) and bank transfer, processed via Stripe.

Source
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