Databases · head to head
Azure Cosmos DB vs PubNub

Azure Cosmos DB
Databases
Globally distributed, multi-model database service from Azure
- From
- Free
- Free plan
- Yes

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.
| Attribute | Azure Cosmos DB | PubNub |
|---|---|---|
| Pricing model | Usage-based | Freemium |
| Platforms | Web, Azure | Web, iOS, Android, API |
| Category | Databases | APIs |
| Founded | 1975 | 2010 |
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.
SourcePubNub: 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.
SourceAzure 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.
SourcePubNub: 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.
SourceAzure 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.
SourcePubNub: 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.
SourceAzure 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.
SourceRelated pages
More on Azure Cosmos DB
Other head to heads
- Azure Cosmos DB vs Google Cloud Spanner
- Azure Cosmos DB vs DataStax
- Azure Cosmos DB vs MongoDB
- Azure Cosmos DB vs RavenDB
- Azure Cosmos DB vs Amazon DocumentDB
- Azure Cosmos DB vs CockroachDB
- Azure Cosmos DB vs Couchbase
- Azure Cosmos DB vs Firestore
- Azure Cosmos DB vs Dgraph
- Azure Cosmos DB vs Vitess
- Azure Cosmos DB vs Canary Labs
- Azure Cosmos DB vs Convex
- Azure Cosmos DB vs dbt
- Azure Cosmos DB vs Instaclustr
- Azure Cosmos DB vs Google Cloud SQL
- Azure Cosmos DB vs MongoDB Atlas
- Azure Cosmos DB vs DynamoDB
- Azure Cosmos DB vs Amazon Neptune
- Azure Cosmos DB vs Pusher
- Azure Cosmos DB vs Ably
- Azure Cosmos DB vs Liveblocks
- Azure Cosmos DB vs Novu
- Azure Cosmos DB vs Courier
- Azure Cosmos DB vs Svix
- Azure Cosmos DB vs Yapily
- Azure Cosmos DB vs Lithic
- Azure Cosmos DB vs MX Technologies
- Azure Cosmos DB vs Increase
- Azure Cosmos DB vs Solaris
- Azure Cosmos DB vs Token.io
- Azure Cosmos DB vs Appwrite
- Azure Cosmos DB vs Bruno
- Azure Cosmos DB vs Marqeta
- Azure Cosmos DB vs Temenos Transact
- Azure Cosmos DB vs Apidog
- Azure Cosmos DB vs Microsoft Azure API Management
- PubNub vs Google Cloud Spanner
- PubNub vs DataStax
- PubNub vs MongoDB
- PubNub vs RavenDB
- PubNub vs Amazon DocumentDB
- PubNub vs CockroachDB
- PubNub vs Couchbase
- PubNub vs Firestore
- PubNub vs Dgraph
- PubNub vs Vitess
- PubNub vs Canary Labs
- PubNub vs Convex
- PubNub vs dbt
- PubNub vs Instaclustr
- PubNub vs Google Cloud SQL
- PubNub vs MongoDB Atlas
- PubNub vs DynamoDB
- PubNub vs Amazon Neptune
- PubNub vs Pusher
- PubNub vs Ably
- PubNub vs Liveblocks
- PubNub vs Novu
- PubNub vs Courier
- PubNub vs Svix
- PubNub vs Yapily
- PubNub vs Lithic
- PubNub vs MX Technologies
- PubNub vs Increase
- PubNub vs Solaris
- PubNub vs Token.io
- PubNub vs Appwrite
- PubNub vs Bruno
- PubNub vs Marqeta
- PubNub vs Temenos Transact
- PubNub vs Apidog
- PubNub vs Microsoft Azure API Management
