Softwr

Databases · head to head

Azure Cosmos DB vs PubNub

Azure Cosmos DB logo

Azure Cosmos DB

Databases

Globally distributed, multi-model database service from Azure

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

  • Azure Cosmos DB is free; PubNub starts at $98/mo.
  • Only Azure Cosmos DB lists global Distribution; only PubNub lists pub/sub messaging.
  • Where Azure Cosmos DB falls short: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used.
  • Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.

How do Azure Cosmos DB and PubNub differ?

Azure Cosmos DB and PubNub differ on pricing model (Usage-based against Freemium), platforms and category (Databases against APIs). Only the attributes on which Azure Cosmos DB and PubNub actually diverge.

Attributes where Azure Cosmos DB and PubNub differ
AttributeAzure Cosmos DBPubNub
Pricing modelUsage-basedFreemium
PlatformsWeb, AzureWeb, iOS, Android, API
CategoryDatabasesAPIs
Founded19752010

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

Which features does each one have?

They share no listed features; 14 appear only for Azure Cosmos DB 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 Azure Cosmos DB

  • Global Distribution
  • Multi-model APIs
  • Elastic Scaling
  • Five Consistency Levels
  • SLA-backed Latency
  • Automatic Indexing
  • Serverless
  • Azure Functions

Only in PubNub

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

What is each one used for?

Azure Cosmos DB is most often brought in for running a globally distributed multi model database on Azure; PubNub for building realtime chat applications. The jobs each tool is most often brought in to do.

Azure Cosmos DB

  • Running a globally distributed multi model database on Azurenot PubNub
  • Serving low latency reads and writes from multiple Azure regionsnot PubNub
  • Storing document, key value and graph data behind a managed servicenot PubNub

PubNub

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

Where do Azure Cosmos DB and PubNub fall short?

Azure Cosmos DB's most cited limit: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used. PubNub's: 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.

Azure Cosmos DB

  • Autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used
  • Provisioned throughput is charged in every region the account is replicated to, so multi region accounts multiply the RU bill
  • Storage charges cover data, indexes and backups in each replicated region
  • Egress out of Azure and between regions is charged, though ingress is free
  • The free allowance is one account per Azure subscription, limited to 1,000 RU/s and 25 GB
  • RU/s rates vary by region and are only shown through the pricing calculator rather than a flat published rate

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 Azure Cosmos DB and PubNub cost?

Azure Cosmos DB is free to use; PubNub has a free plan, with paid plans from $98/mo. Plan by plan below, from each vendor's own pricing page.

Azure Cosmos DB

Free
  • Free TierFree
    • 1000 RU/s
    • 25GB storage
    • First 12 months
  • ServerlessFree
    • Pay per request
    • Auto-scaling
    • Event-driven workloads

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 Azure Cosmos DB if

  • You need global distribution.
  • You want to start without paying.
  • You work on Web, Azure.
  • You also want multi-model apis.

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 Azure Cosmos DB or PubNub better?
It depends on the job. Azure Cosmos DB fits running a globally distributed multi model database on Azure; PubNub fits building realtime chat applications. Azure Cosmos DB starts at Free and PubNub at Free.
Which is cheaper, Azure Cosmos DB or PubNub?
Azure Cosmos DB starts at Free and PubNub at Free.
Does Azure Cosmos DB or PubNub run on more platforms?
Azure Cosmos DB runs on Web, Azure. PubNub runs on Web, iOS, Android, API.
Can I use Azure Cosmos DB for free?
Both have a free tier, so you can try either at no cost before committing.
What is Azure Cosmos DB best used for?
Azure Cosmos DB is most often used for running a globally distributed multi model database on azure, serving low latency reads and writes from multiple azure regions, storing document, key value and graph data behind a managed service. Of those, running a globally distributed multi model database on azure and serving low latency reads and writes from multiple azure regions are not what PubNub is typically brought in for.
What can Azure Cosmos DB do that PubNub cannot?
Azure Cosmos DB covers Global Distribution, Multi-model APIs, Elastic Scaling, Five Consistency Levels. PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.

Answered from the vendors’ own pages

Azure Cosmos DB: Is there a free tier for Azure Cosmos DB?

Yes, Cosmos DB offers a free tier with 1,000 RU/s of throughput and 25 GB of storage per month for the lifetime of the account, available to new accounts.

Source
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
Azure Cosmos DB: How is Cosmos DB priced after the free tier?

Cosmos DB uses three billing models: provisioned throughput billed per request unit per second, vCore pricing for certain APIs, or serverless consumption pricing where you pay only for requests processed. Reserved capacity offers 20% discount for one year or 30% for three years.

Source
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
Azure Cosmos DB: Can I change my pricing model after choosing one?

No. Once you select a compute pricing model and API, they cannot be changed. This choice is permanent for that database.

Source
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
Azure Cosmos DB: Is there a trial period for Cosmos DB beyond the free tier?

Azure offers a 30-day free trial account for all Azure services. Additionally, Azure AI customers may be eligible for a 90-day free Cosmos DB subscription through the Azure AI Advantage program.

Source
Share

Related pages

Other head to heads