Databases · head to head
CockroachDB vs PubNub

CockroachDB
Databases
The cloud-native distributed SQL database
- 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
- CockroachDB is a cloud-native distributed SQL database.
- Free plans on both; paid from $0.057/mo and $98/mo.
- Only CockroachDB lists distributed SQL; only PubNub lists pub/sub messaging.
- Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
- Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.
How do CockroachDB and PubNub differ?
CockroachDB and PubNub differ on platforms, category (Databases against APIs) and year founded (2015 against 2010). Only the attributes on which CockroachDB and PubNub actually diverge.
| Attribute | CockroachDB | PubNub |
|---|---|---|
| Platforms | AWS, GCP, Azure | Web, iOS, Android, API |
| Category | Databases | APIs |
| Founded | 2015 | 2010 |
Identical on both: starting price (Free), pricing model (Freemium), free tier (Yes).
Which features does each one have?
They share no listed features; 20 appear only for CockroachDB 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 CockroachDB
- Distributed SQL
- Automatic Sharding
- Multi-region Replication
- Geo-partitioning
- ACID Transactions
- Horizontal Scaling
- Survivability
- PostgreSQL Compatibility
Only in PubNub
- Pub/sub messaging
- Presence tracking
- Message persistence
- Serverless Functions
- File sharing
- Encryption and access controls
What is each one used for?
CockroachDB is most often brought in for distributed SQL database for scalable applications; PubNub for building realtime chat applications. The jobs each tool is most often brought in to do.
CockroachDB
- Distributed SQL database for scalable applicationsnot PubNub
- Multi-region deployment and failovernot PubNub
PubNub
- Building realtime chat applicationsnot CockroachDB
- Streaming live IoT sensor datanot CockroachDB
- Adding presence indicators to collaborative appsnot CockroachDB
- Running edge logic with serverless Functions on realtime eventsnot CockroachDB
Where do CockroachDB and PubNub fall short?
CockroachDB's most cited limit: basic and Standard tiers limited to AWS and GCP (select regions only). 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.
CockroachDB
- Basic and Standard tiers limited to AWS and GCP (select regions only)
- Azure support restricted to Advanced tier only
- Basic tier limited to 50 million RUs and 10 GiB storage per month
- Advanced tier starts at $0.60/hour for 4 vCPUs minimum
- 3 TiB maximum storage on Basic and Standard tiers, 10 TiB per node on Advanced
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 CockroachDB and PubNub cost?
CockroachDB has a free plan, with paid plans from $0.057/mo; PubNub has a free plan, with paid plans from $98/mo. Plan by plan below, from each vendor's own pricing page.
CockroachDB
Free- Standard$0.057/vcpu-hour
- Mission Critical$0.162/vcpu-hour
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 CockroachDB if
- You need distributed sql.
- You want to start without paying.
- You work on AWS, GCP, Azure.
- You also want automatic sharding.
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 CockroachDB or PubNub better?
- It depends on the job. CockroachDB fits distributed SQL database for scalable applications; PubNub fits building realtime chat applications. CockroachDB starts at Free and PubNub at Free.
- Which is cheaper, CockroachDB or PubNub?
- CockroachDB starts at Free and PubNub at Free.
- Does CockroachDB or PubNub run on more platforms?
- CockroachDB runs on AWS, GCP, Azure. PubNub runs on Web, iOS, Android, API.
- Can I use CockroachDB for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is CockroachDB best used for?
- CockroachDB is most often used for distributed sql database for scalable applications, multi-region deployment and failover. Of those, distributed sql database for scalable applications and multi-region deployment and failover are not what PubNub is typically brought in for.
- What can CockroachDB do that PubNub cannot?
- CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning. PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.
Answered from the vendors’ own pages
CockroachDB: What does the free Basic tier include?
The Basic tier is free and includes 50 million RUs and 10 GiB storage per month, with a maximum compute of 30K RU/sec. No credit card is required to start.
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.
SourceCockroachDB: How much do the paid tiers cost?
Standard tier starts at $0.18 per hour for 2 vCPUs, and Advanced tier starts at $0.60 per hour for 4 vCPUs. Both tiers support additional resources with higher costs for increased compute and storage.
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.
SourceCockroachDB: What are the storage limits for each tier?
Basic plan supports up to 3 TiB storage, Standard tier up to 3 TiB, and Advanced tier up to 10 TiB per node with unlimited total storage.
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.
SourceCockroachDB: Can I get trial credits before paying?
Yes, new users can try CockroachDB free with $400 in credits. The Basic and Standard plans do not require a credit card to start.
SourceCockroachDB: Do legacy contracts have different pricing?
Customers with annual or multi-year contracts entered before December 1, 2024 can view legacy pricing terms on a separate page, which apply until their contract renewal date.
SourceRelated pages
More on CockroachDB
Other head to heads
- CockroachDB vs YugabyteDB
- CockroachDB vs PostgreSQL
- CockroachDB vs SingleStore
- CockroachDB vs Google Cloud SQL
- CockroachDB vs Amazon Aurora
- CockroachDB vs Neon
- CockroachDB vs Oracle Database
- CockroachDB vs TiDB
- CockroachDB vs Azure Cosmos DB
- CockroachDB vs Nile
- CockroachDB vs Aiven
- CockroachDB vs Cassandra
- CockroachDB vs Meilisearch
- CockroachDB vs MongoDB Atlas
- CockroachDB vs NATS
- CockroachDB vs Pinecone
- CockroachDB vs Solace PubSub+
- CockroachDB vs Google Cloud Spanner
- CockroachDB vs Pusher
- CockroachDB vs Ably
- CockroachDB vs Liveblocks
- CockroachDB vs Novu
- CockroachDB vs Courier
- CockroachDB vs Svix
- CockroachDB vs Yapily
- CockroachDB vs Lithic
- CockroachDB vs MX Technologies
- CockroachDB vs Increase
- CockroachDB vs Solaris
- CockroachDB vs Token.io
- CockroachDB vs Appwrite
- CockroachDB vs Bruno
- CockroachDB vs Marqeta
- CockroachDB vs Temenos Transact
- CockroachDB vs Apidog
- CockroachDB vs Microsoft Azure API Management
- PubNub vs YugabyteDB
- PubNub vs PostgreSQL
- PubNub vs SingleStore
- PubNub vs Google Cloud SQL
- PubNub vs Amazon Aurora
- PubNub vs Neon
- PubNub vs Oracle Database
- PubNub vs TiDB
- PubNub vs Azure Cosmos DB
- PubNub vs Nile
- PubNub vs Aiven
- PubNub vs Cassandra
- PubNub vs Meilisearch
- PubNub vs MongoDB Atlas
- PubNub vs NATS
- PubNub vs Pinecone
- PubNub vs Solace PubSub+
- PubNub vs Google Cloud Spanner
- 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
