APIs · head to head
Mailgun vs PubNub

PubNub
APIs
Realtime communication platform for chat, IoT, and live data apps
- From
- Free
- Free plan
- Yes
The short version
- Free plans on both; paid from $15/mo and $98/mo.
- Where Mailgun falls short: free tier limited to 100 emails per day, restricting high-volume use cases.
- Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.
How do Mailgun and PubNub differ?
Mailgun and PubNub differ on pricing model (Subscription against Freemium) and platforms. Only the attributes on which Mailgun and PubNub actually diverge.
Identical on both: starting price (Free), free tier (Yes), category (APIs), founded (2010).
Which features does each one have?
They share no listed features; 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 Mailgun
Nothing recorded that PubNub does not also cover.
Only in PubNub
- Pub/sub messaging
- Presence tracking
- Message persistence
- Serverless Functions
- File sharing
- Encryption and access controls
What is each one used for?
Mailgun is most often brought in for transactional email delivery and SMTP relay; PubNub for building realtime chat applications. The jobs each tool is most often brought in to do.
Mailgun
- Transactional email delivery and SMTP relaynot PubNub
- Email marketing at scale for developers and enterprisesnot PubNub
PubNub
- Building realtime chat applicationsnot Mailgun
- Streaming live IoT sensor datanot Mailgun
- Adding presence indicators to collaborative appsnot Mailgun
- Running edge logic with serverless Functions on realtime eventsnot Mailgun
Where do Mailgun and PubNub fall short?
Mailgun's most cited limit: free tier limited to 100 emails per day, restricting high-volume use cases. 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.
Mailgun
- Free tier limited to 100 emails per day, restricting high-volume use cases
- Log retention minimal on lower tiers (1 day on Free and Basic plans)
- Add-on pricing for email validations and extra emails can accumulate quickly for high-traffic users
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 Mailgun and PubNub cost?
Mailgun has a free plan, with paid plans from $15/mo; PubNub has a free plan, with paid plans from $98/mo. Plan by plan below, from each vendor's own pricing page.
Mailgun
Free- FreeFree
- 100 emails per day
- Basic APIs
- SMTP relay
- Basic$15/mo
- 10,000 emails per month
- No daily limits
- Monthly overage options
- Foundation$35/mo
- 50,000 emails per month
- 1,000 custom domains
- Email template builder
- Scale$90/mo
- 100,000 emails per month
- SAML SSO
- 5,000 email validations
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 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 Mailgun or PubNub better?
- It depends on the job. Mailgun fits transactional email delivery and SMTP relay; PubNub fits building realtime chat applications. Mailgun starts at Free and PubNub at Free.
- Which is cheaper, Mailgun or PubNub?
- Mailgun starts at Free and PubNub at Free.
- Does Mailgun or PubNub run on more platforms?
- Mailgun runs on Web. PubNub runs on Web, iOS, Android, API.
- Can I use Mailgun for free?
- Both have a free tier, so you can try either at no cost before committing.
- What is Mailgun best used for?
- Mailgun is most often used for transactional email delivery and smtp relay, email marketing at scale for developers and enterprises. Of those, transactional email delivery and smtp relay and email marketing at scale for developers and enterprises are not what PubNub is typically brought in for.
- What can Mailgun do that PubNub cannot?
- PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.
Answered from the vendors’ own pages
Mailgun: What happens when I exceed my monthly email quota?
Mailgun allows monthly overage options on paid plans. Extra emails are charged from $1.30 to $1.10 per 1,000 emails depending on plan tier. Enterprise customers negotiate custom rates.
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.
SourceMailgun: Can I upgrade from Free to a paid plan and when does billing begin?
Yes, you can upgrade to paid plans anytime. The first month is free on Foundation ($35/month) and Scale ($90/month) plans, with billing starting on month two.
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.
SourceMailgun: What currencies and billing periods does Mailgun support?
Mailgun supports monthly billing in USD, EUR, and GBP. Charges are prorated for mid-month signups. Annual billing options are not explicitly listed on the pricing page.
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
- Mailgun vs Postmark
- Mailgun vs Swan
- Mailgun vs Courier
- Mailgun vs Mambu
- Mailgun vs Tyk
- Mailgun vs Yapily
- Mailgun vs 10x Banking
- Mailgun vs Microsoft Azure API Management
- Mailgun vs Hoppscotch
- Mailgun vs Ably
- Mailgun vs Lithic
- Mailgun vs AWS API Gateway
- Mailgun vs GraphQL Playground
- Mailgun vs IBM API Connect
- Mailgun vs Janus Gateway
- Mailgun vs Method Financial
- Mailgun vs Sensedia
- Mailgun vs Sila
- Mailgun vs Pusher
- Mailgun vs Liveblocks
- Mailgun vs Novu
- Mailgun vs Svix
- Mailgun vs MX Technologies
- Mailgun vs Increase
- Mailgun vs Solaris
- Mailgun vs Token.io
- Mailgun vs Appwrite
- Mailgun vs Bruno
- Mailgun vs Marqeta
- Mailgun vs Temenos Transact
- Mailgun vs Apidog
- PubNub vs Postmark
- PubNub vs Swan
- PubNub vs Courier
- PubNub vs Mambu
- PubNub vs Tyk
- PubNub vs Yapily
- PubNub vs 10x Banking
- PubNub vs Microsoft Azure API Management
- PubNub vs Hoppscotch
- PubNub vs Ably
- PubNub vs Lithic
- PubNub vs AWS API Gateway
- PubNub vs GraphQL Playground
- PubNub vs IBM API Connect
- PubNub vs Janus Gateway
- PubNub vs Method Financial
- PubNub vs Sensedia
- PubNub vs Sila
- PubNub vs Pusher
- PubNub vs Liveblocks
- PubNub vs Novu
- PubNub vs Svix
- 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

