Databases · head to head
Memcached vs PubNub
Memcached
Databases
Distributed memory object caching system
- 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
- Memcached is free; PubNub starts at $98/mo.
- Only Memcached lists in-memory key-value cache; only PubNub lists pub/sub messaging.
- Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.
- Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.
How do Memcached and PubNub differ?
Memcached and PubNub differ on pricing model, platforms and category (Databases against APIs). Only the attributes on which Memcached and PubNub actually diverge.
Identical on both: starting price (Free), free tier (Yes).
Which features does each one have?
They share no listed features; 4 appear only for Memcached 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 Memcached
- In-memory key-value cache
- Multithreaded
- Client-side sharding
- Predictable memory use
Only in PubNub
- Pub/sub messaging
- Presence tracking
- Message persistence
- Serverless Functions
- File sharing
- Encryption and access controls
What is each one used for?
Memcached is most often brought in for caching expensive database query results to cut load; PubNub for building realtime chat applications. The jobs each tool is most often brought in to do.
Memcached
- Caching expensive database query results to cut loadnot PubNub
- Session storage where losing sessions on restart is acceptablenot PubNub
- Fronting an API whose responses are costly and change slowlynot PubNub
PubNub
- Building realtime chat applicationsnot Memcached
- Streaming live IoT sensor datanot Memcached
- Adding presence indicators to collaborative appsnot Memcached
- Running edge logic with serverless Functions on realtime eventsnot Memcached
Where do Memcached and PubNub fall short?
Memcached's most cited limit: no persistence at all: restart a node and its cache is gone, which every design must assume. 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.
Memcached
- No persistence at all: restart a node and its cache is gone, which every design must assume
- No replication or failover, so losing a node loses that share of the cache
- Only simple key-value, with none of the lists, sorted sets or streams Redis offers
- Values are capped at 1MB by default, which surprises teams caching large documents
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 Memcached and PubNub cost?
Memcached 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.
Memcached
Free- MemcachedFree
- 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 Memcached if
- You need in-memory key-value cache.
- You want to start without paying.
- You work on Linux, macOS, Windows, Self-hosted.
- You also want multithreaded.
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 Memcached or PubNub better?
- It depends on the job. Memcached fits caching expensive database query results to cut load; PubNub fits building realtime chat applications. Memcached starts at Free and PubNub at Free.
- Which is cheaper, Memcached or PubNub?
- Memcached starts at Free and PubNub at Free.
- Does Memcached or PubNub run on more platforms?
- Memcached runs on Linux, macOS, Windows, Self-hosted. PubNub runs on Web, iOS, Android, API.
- Can I use Memcached for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Memcached best used for?
- Memcached is most often used for caching expensive database query results to cut load, session storage where losing sessions on restart is acceptable, fronting an api whose responses are costly and change slowly. Of those, caching expensive database query results to cut load and session storage where losing sessions on restart is acceptable are not what PubNub is typically brought in for.
- What can Memcached do that PubNub cannot?
- Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use. PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.
Answered from the vendors’ own pages
Memcached: Is Memcached free?
Yes, open source with no licence fee.
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.
SourceMemcached: Memcached or Redis?
Memcached is a pure cache: simpler, multithreaded and very predictable. Redis adds persistence, replication and rich data structures, which is why it is the default choice unless you specifically want a cache and nothing more.
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.
SourceMemcached: Does Memcached persist data?
No. Everything is in memory and lost on restart, by design.
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
Other head to heads
- Memcached vs Valkey
- Memcached vs Readyset
- Memcached vs Amazon ElastiCache
- Memcached vs Redis
- Memcached vs Dragonfly
- Memcached vs PostgreSQL
- Memcached vs DuckDB
- Memcached vs Apache Pulsar
- Memcached vs NATS
- Memcached vs MySQL
- Memcached vs VictoriaMetrics
- Memcached vs Dgraph
- Memcached vs Google Cloud SQL
- Memcached vs MotherDuck
- Memcached vs Presto
- Memcached vs TIBCO Enterprise Message Service
- Memcached vs VerneMQ
- Memcached vs DynamoDB
- Memcached vs Pusher
- Memcached vs Ably
- Memcached vs Liveblocks
- Memcached vs Novu
- Memcached vs Courier
- Memcached vs Svix
- Memcached vs Yapily
- Memcached vs Lithic
- Memcached vs MX Technologies
- Memcached vs Increase
- Memcached vs Solaris
- Memcached vs Token.io
- Memcached vs Appwrite
- Memcached vs Bruno
- Memcached vs Marqeta
- Memcached vs Temenos Transact
- Memcached vs Apidog
- Memcached vs Microsoft Azure API Management
- PubNub vs Valkey
- PubNub vs Readyset
- PubNub vs Amazon ElastiCache
- PubNub vs Redis
- PubNub vs Dragonfly
- PubNub vs PostgreSQL
- PubNub vs DuckDB
- PubNub vs Apache Pulsar
- PubNub vs NATS
- PubNub vs MySQL
- PubNub vs VictoriaMetrics
- PubNub vs Dgraph
- PubNub vs Google Cloud SQL
- PubNub vs MotherDuck
- PubNub vs Presto
- PubNub vs TIBCO Enterprise Message Service
- PubNub vs VerneMQ
- PubNub vs DynamoDB
- 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
