Databases · head to head
Apache Flink vs PubNub

Apache Flink
Databases
Stateful stream processing at scale
- 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
- Apache Flink is free; PubNub starts at $98/mo.
- Only Apache Flink lists event-time processing; only PubNub lists pub/sub messaging.
- Where Apache Flink falls short: genuinely difficult: event time, watermarks and state backends are a real conceptual load before anything works.
- Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.
How do Apache Flink and PubNub differ?
Apache Flink and PubNub differ on pricing model, platforms and category (Databases against APIs). Only the attributes on which Apache Flink and PubNub actually diverge.
| Attribute | Apache Flink | PubNub |
|---|---|---|
| Pricing model | Open source, no licence fee; managed services billed separately | Freemium |
| Platforms | Linux, Self-hosted | Web, iOS, Android, API |
| Category | Databases | APIs |
Identical on both: starting price (Free), free tier (Yes).
Not yet recorded: founded for Apache Flink.
Which features does each one have?
They share no listed features; 4 appear only for Apache Flink 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 Apache Flink
- Event-time processing
- Exactly-once state
- Batch and stream
- SQL interface
Only in PubNub
- Pub/sub messaging
- Presence tracking
- Message persistence
- Serverless Functions
- File sharing
- Encryption and access controls
What is each one used for?
Apache Flink is most often brought in for real-time aggregations and dashboards computed over an event stream; PubNub for building realtime chat applications. The jobs each tool is most often brought in to do.
Apache Flink
- Real-time aggregations and dashboards computed over an event streamnot PubNub
- Fraud and anomaly detection where patterns span a time windownot PubNub
- Joining two live streams where events arrive out of ordernot PubNub
PubNub
- Building realtime chat applicationsnot Apache Flink
- Streaming live IoT sensor datanot Apache Flink
- Adding presence indicators to collaborative appsnot Apache Flink
- Running edge logic with serverless Functions on realtime eventsnot Apache Flink
Where do Apache Flink and PubNub fall short?
Apache Flink's most cited limit: genuinely difficult: event time, watermarks and state backends are a real conceptual load before anything works. 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.
Apache Flink
- Genuinely difficult: event time, watermarks and state backends are a real conceptual load before anything works
- Operationally heavy — job managers, task managers, checkpoint storage and state size are all yours to run and tune
- State grows with the workload, and large state changes recovery time and cost significantly
- Overkill where a scheduled batch job would answer the same question
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 Apache Flink and PubNub cost?
Apache Flink 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.
Apache Flink
Free- Apache FlinkFree
- Full functionality
- Self-hosted
- No usage limits
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 Apache Flink if
- You need event-time processing.
- You want to start without paying.
- You work on Linux, Self-hosted.
- You also want exactly-once state.
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 Apache Flink or PubNub better?
- It depends on the job. Apache Flink fits real-time aggregations and dashboards computed over an event stream; PubNub fits building realtime chat applications. Apache Flink starts at Free and PubNub at Free.
- Which is cheaper, Apache Flink or PubNub?
- Apache Flink starts at Free and PubNub at Free.
- Does Apache Flink or PubNub run on more platforms?
- Apache Flink runs on Linux, Self-hosted. PubNub runs on Web, iOS, Android, API.
- Can I use Apache Flink for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Apache Flink best used for?
- Apache Flink is most often used for real-time aggregations and dashboards computed over an event stream, fraud and anomaly detection where patterns span a time window, joining two live streams where events arrive out of order. Of those, real-time aggregations and dashboards computed over an event stream and fraud and anomaly detection where patterns span a time window are not what PubNub is typically brought in for.
- What can Apache Flink do that PubNub cannot?
- Apache Flink covers Event-time processing, Exactly-once state, Batch and stream, SQL interface. PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.
Answered from the vendors’ own pages
Apache Flink: Is Apache Flink free?
Yes, open source under the Apache Software Foundation. Managed services such as Amazon Managed Service for Apache Flink are billed separately.
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.
SourceApache Flink: Flink or Kafka?
They are complementary rather than alternatives. Kafka moves and stores events; Flink computes over them with windowing, joins and durable state.
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.
SourceApache Flink: What is event-time processing?
Computing based on when an event actually occurred rather than when it arrived. It is what makes results correct when data is late or out of order, and it is the main reason Flink is harder than it looks.
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.
SourceRelated pages
More on Apache Flink
Other head to heads
- Apache Flink vs Timeplus
- Apache Flink vs RisingWave
- Apache Flink vs Materialize
- Apache Flink vs Apache Spark
- Apache Flink vs ClickHouse
- Apache Flink vs SingleStore
- Apache Flink vs DuckDB
- Apache Flink vs Redpanda
- Apache Flink vs QuestDB
- Apache Flink vs NATS
- Apache Flink vs OpenSearch
- Apache Flink vs Estuary
- Apache Flink vs Google Cloud SQL
- Apache Flink vs MotherDuck
- Apache Flink vs Presto
- Apache Flink vs TIBCO Enterprise Message Service
- Apache Flink vs VerneMQ
- Apache Flink vs Xata
- Apache Flink vs Pusher
- Apache Flink vs Ably
- Apache Flink vs Liveblocks
- Apache Flink vs Novu
- Apache Flink vs Courier
- Apache Flink vs Svix
- Apache Flink vs Yapily
- Apache Flink vs Lithic
- Apache Flink vs MX Technologies
- Apache Flink vs Increase
- Apache Flink vs Solaris
- Apache Flink vs Token.io
- Apache Flink vs Appwrite
- Apache Flink vs Bruno
- Apache Flink vs Marqeta
- Apache Flink vs Temenos Transact
- Apache Flink vs Apidog
- Apache Flink vs Microsoft Azure API Management
- PubNub vs Timeplus
- PubNub vs RisingWave
- PubNub vs Materialize
- PubNub vs Apache Spark
- PubNub vs ClickHouse
- PubNub vs SingleStore
- PubNub vs DuckDB
- PubNub vs Redpanda
- PubNub vs QuestDB
- PubNub vs NATS
- PubNub vs OpenSearch
- PubNub vs Estuary
- PubNub vs Google Cloud SQL
- PubNub vs MotherDuck
- PubNub vs Presto
- PubNub vs TIBCO Enterprise Message Service
- PubNub vs VerneMQ
- PubNub vs Xata
- 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
