Softwr

Databases · head to head

FaunaDB vs PubNub

FaunaDB logo

FaunaDB

Databases

Document-relational database whose hosted service closed in 2025 and whose core is now unmaintained Apache 2.0 code.

From
Free
Free plan
Yes
PubNub logo

PubNub

APIs

Realtime communication platform for chat, IoT, and live data apps

From
Free
Free plan
Yes

The short version

  • Free plans on both; paid from $25/mo and $98/mo.
  • Only FaunaDB lists document-relational model; only PubNub lists pub/sub messaging.
  • Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.

How do FaunaDB and PubNub differ?

FaunaDB and PubNub differ on platforms, category (Databases against APIs) and year founded (2012 against 2010). Only the attributes on which FaunaDB and PubNub actually diverge.

Attributes where FaunaDB and PubNub differ
AttributeFaunaDBPubNub
PlatformsWebWeb, iOS, Android, API
CategoryDatabasesAPIs
Founded20122010

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

Which features does each one have?

They share no listed features; 10 appear only for FaunaDB and 6 only for PubNub. 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 FaunaDB

  • Document-relational model
  • FQL v10
  • Distributed ACID transactions
  • HTTPS access
  • User-defined functions
  • Attribute-based access control
  • Document history
  • Event streaming

Only in PubNub

  • Pub/sub messaging
  • Presence tracking
  • Message persistence
  • Serverless Functions
  • File sharing
  • Encryption and access controls

What is each one used for?

PubNub is most often brought in for building realtime chat applications. The jobs each tool is most often brought in to do.

FaunaDB

  • Keeping an existing Fauna-backed application alive on self-hosted infrastructure while a migration is planned and fundednot PubNub
  • Extracting historical data from a Fauna dataset that can no longer be reached through the hosted APInot PubNub
  • Studying a production implementation of deterministic distributed transactions, since the full server source is now readable under Apache 2.0not PubNub
  • Forking the engine deliberately, where an organisation has JVM and distributed-systems staff and wants a document-relational store it fully controlsnot PubNub

PubNub

  • Building realtime chat applicationsnot FaunaDB
  • Streaming live IoT sensor datanot FaunaDB
  • Adding presence indicators to collaborative appsnot FaunaDB
  • Running edge logic with serverless Functions on realtime eventsnot FaunaDB

Where do FaunaDB and PubNub fall short?

PubNub's most cited limit: free plan storage history is limited to 7 days, which is short for apps needing longer message retention. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

FaunaDB

  • The hosted service was wound down in 2025, so there is no managed Fauna to buy; every remaining user either operates a JVM cluster themselves or migrates, and both are projects rather than tasks
  • The open-sourced repository has had no substantive activity since May 2025 and the drivers were frozen alongside it, so you inherit responsibility for security patches in a Scala distributed database that almost nobody else is running
  • FQL has no wire or dialect compatibility with anything else, so migrating off is a rewrite of every query, index and access rule in the application rather than a data export
  • No BI tool, ORM or CDC connector speaks FQL, so reporting and analytics always required exporting the data first, and that export tooling is now also unmaintained
  • The community was small before the shutdown and has dispersed since, so operational answers, tuning advice and people who have run a Fauna cluster in anger are all scarce when something breaks

PubNub

  • Free plan storage history is limited to 7 days, which is short for apps needing longer message retention
  • MAU-based pricing means costs scale directly with user growth, which can be less predictable than flat message-based pricing
  • Pro-tier custom pricing above 50,000 MAU requires contacting sales rather than self-serve checkout

How much do FaunaDB and PubNub cost?

FaunaDB has a free plan, with paid plans from $25/mo; PubNub has a free plan, with paid plans from $98/mo. Plan by plan below, from each vendor's own pricing page.

FaunaDB

Free
  • FreeFree
    • 100K read ops
    • 50K write ops
    • 1GB storage
  • Pro$25/mo
    • Pay per use
    • Priority support
    • Advanced features

PubNub

Free
  • FreeFree
    • Up to 200 MAU or 1M transactions
    • 1GB data storage (7 days)
    • 5 test Serverless Functions
  • Starter$98/mo
    • 1,000 MAU included
    • User management
    • Insights
  • ProOn request
    • Custom MAU packages
    • Volume discounts
    • Enterprise-scale configurations

Which should you pick?

Choose FaunaDB if

  • You need document-relational model.
  • You want to start without paying.
  • You also want fql v10.

Choose PubNub if

  • You need pub/sub messaging.
  • You want to start without paying.
  • You work on Web, iOS, Android, API.
  • You also want presence tracking.

Questions people ask

Is FaunaDB or PubNub better?
It depends on the job. FaunaDB fits keeping an existing Fauna-backed application alive on self-hosted infrastructure while a migration is planned and funded; PubNub fits building realtime chat applications. FaunaDB starts at Free and PubNub at Free.
Which is cheaper, FaunaDB or PubNub?
FaunaDB starts at Free and PubNub at Free.
Does FaunaDB or PubNub run on more platforms?
FaunaDB runs on Web. PubNub runs on Web, iOS, Android, API.
Can I use FaunaDB for free?
Both have a free tier, so you can try either at no cost before committing.
What is FaunaDB best used for?
FaunaDB is most often used for keeping an existing fauna-backed application alive on self-hosted infrastructure while a migration is planned and funded, extracting historical data from a fauna dataset that can no longer be reached through the hosted api, studying a production implementation of deterministic distributed transactions, since the full server source is now readable under apache 2.0, forking the engine deliberately, where an organisation has jvm and distributed-systems staff and wants a document-relational store it fully controls. Of those, keeping an existing fauna-backed application alive on self-hosted infrastructure while a migration is planned and funded and extracting historical data from a fauna dataset that can no longer be reached through the hosted api are not what PubNub is typically brought in for.
What can FaunaDB do that PubNub cannot?
FaunaDB covers Document-relational model, FQL v10, Distributed ACID transactions, HTTPS access. PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.

Answered from the vendors’ own pages

FaunaDB: Can I still sign up for Fauna as a service?

No. Fauna Inc. wound down the hosted service in 2025 and the company website is no longer serving. The only way to run Fauna now is to build and operate the open-sourced server yourself.

PubNub: What does PubNub cost?

PubNub offers a free plan for up to 200 MAU or 1 million transactions, a Starter plan at $98/month for 1,000 MAU, and custom Pro pricing for larger volumes, e.g. around $550/month for 10,000 MAU.

Source
FaunaDB: What licence is the open-sourced code under?

Apache 2.0, with the copyright held by a FaunaDB Foundation. That is a permissive OSI licence with no competing-use clause, so you may run it, modify it and even offer it as a service.

PubNub: Is there a free plan, and what are its limits?

Yes, the free plan supports up to 200 monthly active users or 1 million transactions, includes 1GB of data storage retained for 7 days, and requires no credit card.

Source
FaunaDB: Is the open source version the same software that ran the cloud?

It is the core database engine. The control plane, billing, dashboard and multi-tenant operational tooling that made it a service are not part of the release, so you are running the engine, not the product.

PubNub: How is usage metered?

PubNub bills primarily by Monthly Active Users, defined as a unique user who connects at least once in a billing cycle; messages are bundled into MAU pricing with no separate per-message fees, and overage is billed proportionally.

Source
FaunaDB: What should I migrate to?

There is no drop-in target. Teams that valued the document model with relationships usually land on Postgres with JSONB, and teams that valued the serverless HTTP access pattern usually land on DynamoDB or a managed Postgres with an HTTP driver. Either way the query layer is rewritten.

FaunaDB: How hard is it to self-host?

It builds as a fat JAR and runs as a multi-node JVM cluster. There is an OPERATING.md, but no supported packaging, no operator, no upstream releases and no support contract, so budget for a distributed-systems engineer, not a container.

Share

Related pages

Other head to heads