Networking · head to head
MQTT vs PubNub

MQTT
Networking
Lightweight messaging protocol for IoT devices
- 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
- MQTT is free; PubNub starts at $98/mo.
- Only MQTT lists QoS Levels; only PubNub lists pub/sub messaging.
- Where MQTT falls short: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product.
- Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.
How do MQTT and PubNub differ?
MQTT and PubNub differ on pricing model (Open-source against Freemium), platforms and category (Networking against APIs). Only the attributes on which MQTT and PubNub actually diverge.
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 12 appear only for MQTT 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 MQTT
- Publish-Subscribe
- Lightweight
- QoS Levels
- Retained Messages
- IoT platforms
- Home automation
- Cloud services
- Edge devices
Only in PubNub
- Pub/sub messaging
- Presence tracking
- Message persistence
- Serverless Functions
- File sharing
- Encryption and access controls
What is each one used for?
MQTT is most often brought in for IoT messaging; PubNub for building realtime chat applications. The jobs each tool is most often brought in to do.
MQTT
- IoT messagingnot PubNub
- Sensor datanot PubNub
- Real-time updatesnot PubNub
- Device telemetrynot PubNub
PubNub
- Building realtime chat applicationsnot MQTT
- Streaming live IoT sensor datanot MQTT
- Adding presence indicators to collaborative appsnot MQTT
- Running edge logic with serverless Functions on realtime eventsnot MQTT
Where do MQTT and PubNub fall short?
MQTT's most cited limit: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product. 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.
MQTT
- MQTT is an open-source protocol standard with no commercial pricing; not a commercial product
- Security is not built into the protocol: encryption relies on TLS or application level encryption, and TLS adds network overhead
- Clients cannot exchange messages directly: a broker server is required to route published messages to subscribers
- Delivery has only three quality of service levels (at most once, at least once, exactly once), so richer routing needs broker features
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 MQTT and PubNub cost?
MQTT 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.
MQTT
Free- Open ProtocolFree
- Publish-subscribe
- Lightweight
- QoS levels
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 MQTT if
- You need publish-subscribe.
- You want to start without paying.
- You work on Any platform, Embedded devices, Web, Browser extension.
- You also want lightweight.
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 MQTT or PubNub better?
- It depends on the job. MQTT fits ioT messaging; PubNub fits building realtime chat applications. MQTT starts at Free and PubNub at Free.
- Which is cheaper, MQTT or PubNub?
- MQTT starts at Free and PubNub at Free.
- Does MQTT or PubNub run on more platforms?
- MQTT runs on Any platform, Embedded devices, Web, Browser extension. PubNub runs on Web, iOS, Android, API.
- Can I use MQTT for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is MQTT best used for?
- MQTT is most often used for iot messaging, sensor data, real-time updates, device telemetry. Of those, iot messaging and sensor data are not what PubNub is typically brought in for.
- What can MQTT do that PubNub cannot?
- MQTT covers Publish-Subscribe, Lightweight, QoS Levels, Retained Messages. PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.
Answered from the vendors’ own pages
MQTT: Does MQTT have a commercial license cost?
MQTT is an open-source communication protocol and standard. No pricing is published because MQTT itself is not a commercial product for sale.
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.
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.
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.
SourceRelated pages
Other head to heads
- MQTT vs HiveMQ
- MQTT vs Eclipse Mosquitto
- MQTT vs Tailscale
- MQTT vs OpenVPN
- MQTT vs PRTG Network Monitor
- MQTT vs ZeroTier
- MQTT vs Traefik
- MQTT vs Auvik
- MQTT vs Headscale
- MQTT vs WhatsUp Gold
- MQTT vs Zabbix
- MQTT vs Cloudflare
- MQTT vs Cacti
- MQTT vs ExtraHop
- MQTT vs F5 BIG-IP
- MQTT vs LogicMonitor
- MQTT vs ngrok
- MQTT vs Speedtest by Ookla
- MQTT vs Pusher
- MQTT vs Ably
- MQTT vs Liveblocks
- MQTT vs Novu
- MQTT vs Courier
- MQTT vs Svix
- MQTT vs Yapily
- MQTT vs Lithic
- MQTT vs MX Technologies
- MQTT vs Increase
- MQTT vs Solaris
- MQTT vs Token.io
- MQTT vs Appwrite
- MQTT vs Bruno
- MQTT vs Marqeta
- MQTT vs Temenos Transact
- MQTT vs Apidog
- MQTT vs Microsoft Azure API Management
- PubNub vs HiveMQ
- PubNub vs Eclipse Mosquitto
- PubNub vs Tailscale
- PubNub vs OpenVPN
- PubNub vs PRTG Network Monitor
- PubNub vs ZeroTier
- PubNub vs Traefik
- PubNub vs Auvik
- PubNub vs Headscale
- PubNub vs WhatsUp Gold
- PubNub vs Zabbix
- PubNub vs Cloudflare
- PubNub vs Cacti
- PubNub vs ExtraHop
- PubNub vs F5 BIG-IP
- PubNub vs LogicMonitor
- PubNub vs ngrok
- PubNub vs Speedtest by Ookla
- 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
