Softwr

Databases · head to head

ClickHouse vs PubNub

ClickHouse logo

ClickHouse

Databases

Fast open-source column-oriented database for real-time analytics

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

  • ClickHouse is free; PubNub starts at $98/mo.
  • Only ClickHouse lists column-oriented Storage; only PubNub lists pub/sub messaging.
  • Where ClickHouse falls short: limited multi-row atomic transactions and expensive UPDATE/DELETE operations unsuitable for transactional systems.
  • Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.

How do ClickHouse and PubNub differ?

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

Attributes where ClickHouse and PubNub differ
AttributeClickHousePubNub
PlatformsLinux, macOS, WindowsWeb, iOS, Android, API
CategoryDatabasesAPIs
Founded20212010

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

Not yet recorded: pricing model for ClickHouse.

Which features does each one have?

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

  • Column-oriented Storage
  • Real-time Analytics
  • SQL Support
  • Linear Scalability
  • Data Compression
  • Vectorized Query Execution
  • Approximate Calculations
  • Kafka

Only in PubNub

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

What is each one used for?

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

ClickHouse

  • Business intelligencenot PubNub
  • Data warehousingnot PubNub
  • Real-time analyticsnot PubNub
  • Reportingnot PubNub
  • Machine learningnot PubNub

PubNub

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

Where do ClickHouse and PubNub fall short?

ClickHouse's most cited limit: limited multi-row atomic transactions and expensive UPDATE/DELETE operations unsuitable for transactional systems. 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.

ClickHouse

  • Limited multi-row atomic transactions and expensive UPDATE/DELETE operations unsuitable for transactional systems
  • Requires upfront schema design discipline with MergeTree engine choices and sort/partition keys
  • Experimental vector search support, not production-ready for vector operations
  • Different query syntax from standard SQL requiring migration planning
  • Limited JOIN capabilities compared to traditional relational databases
  • Migration complexity with 2-4 weeks estimated for data type mapping and query translation

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 ClickHouse and PubNub cost?

ClickHouse 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.

ClickHouse

Free
  • BasicOn request
  • ScaleOn request
  • EnterpriseOn request

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 ClickHouse if

  • You need column-oriented storage.
  • You want to start without paying.
  • You work on Linux, macOS, Windows.
  • You also want real-time analytics.

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 ClickHouse or PubNub better?
It depends on the job. ClickHouse fits business intelligence; PubNub fits building realtime chat applications. ClickHouse starts at Free and PubNub at Free.
Which is cheaper, ClickHouse or PubNub?
ClickHouse starts at Free and PubNub at Free.
Does ClickHouse or PubNub run on more platforms?
ClickHouse runs on Linux, macOS, Windows. PubNub runs on Web, iOS, Android, API.
Can I use ClickHouse for free?
Both have a free tier, so you can try either at no cost before committing.
What is ClickHouse best used for?
ClickHouse is most often used for business intelligence, data warehousing, real-time analytics, reporting. Of those, business intelligence and data warehousing are not what PubNub is typically brought in for.
What can ClickHouse do that PubNub cannot?
ClickHouse covers Column-oriented Storage, Real-time Analytics, SQL Support, Linear Scalability. PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.

Answered from the vendors’ own pages

ClickHouse: What is ClickHouse best used for?

ClickHouse is optimized for analytical workloads on large datasets. It excels at fast aggregations and queries, being 10-100x faster than PostgreSQL on large aggregations.

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
ClickHouse: Does ClickHouse support transactions?

ClickHouse has limited transaction support and expensive UPDATE/DELETE operations. It is not suitable for transactional workloads requiring strict ACID guarantees.

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
ClickHouse: How does ClickHouse compare to PostgreSQL?

ClickHouse is 10-100x faster for analytics but PostgreSQL is better for transactional workloads. Many teams use both: PostgreSQL for writes via MaterializedPostgreSQL replication to ClickHouse for analytics.

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
Share

Related pages

Other head to heads