Softwr

APIs · head to head

PubNub vs Sourcegraph

PubNub logo

PubNub

APIs

Realtime communication platform for chat, IoT, and live data apps

From
Free
Free plan
Yes
Sourcegraph logo

Sourcegraph

Developer Tools

Code search and intelligence platform for large codebases with Cody AI assistant

From
$16000/year
Free plan
No

The short version

  • Sourcegraph is an enterprise code intelligence platform.
  • PubNub has a free plan, then $98/mo; Sourcegraph starts at $16000/yr.
  • Where PubNub falls short: free plan storage history is limited to 7 days, which is short for apps needing longer message retention.
  • Where Sourcegraph falls short: enterprise pricing starting at $16k annually creates significant barrier for small teams.
  • Prices and features on this page were last checked on 20 November 2026.

How do PubNub and Sourcegraph differ?

PubNub and Sourcegraph differ on starting price (Free against $16000/year), pricing model (Freemium against Subscription) and free tier (Yes against No). Only the attributes on which PubNub and Sourcegraph actually diverge.

Attributes where PubNub and Sourcegraph differ
AttributePubNubSourcegraph
Starting priceFree$16000/year
Pricing modelFreemiumSubscription
Free tierYesNo
PlatformsWeb, iOS, Android, APIWeb, Self-hosted
CategoryAPIsDeveloper Tools
Founded20102013

Which features does each one have?

They share no listed features; 6 appear 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 PubNub

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

Only in Sourcegraph

Nothing recorded that PubNub does not also cover.

What is each one used for?

PubNub is most often brought in for building realtime chat applications; Sourcegraph for large-scale code migrations across hundreds of repositories. The jobs each tool is most often brought in to do.

PubNub

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

Sourcegraph

  • Large-scale code migrations across hundreds of repositoriesnot PubNub
  • Enterprise governance and code ownership trackingnot PubNub
  • AI-assisted bug hunting and security pattern detectionnot PubNub
  • Onboarding engineers into large unfamiliar codebasesnot PubNub
  • Regulatory compliance and code audit trailsnot PubNub

Where do PubNub and Sourcegraph fall short?

PubNub's most cited limit: free plan storage history is limited to 7 days, which is short for apps needing longer message retention. Sourcegraph's: enterprise pricing starting at $16k annually creates significant barrier for small teams. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Sourcegraph

  • Enterprise pricing starting at $16k annually creates significant barrier for small teams
  • No free tier or standard plan published; all options require custom sales engagement
  • Complex enterprise-only positioning limits adoption compared to GitHub Copilot's pervasiveness
  • Requires indexing entire codebase; not suitable for small or ephemeral projects

How much do PubNub and Sourcegraph cost?

PubNub has a free plan, with paid plans from $98/mo; Sourcegraph starts at $16000/yr. Plan by plan below, from each vendor's own pricing page.

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

Sourcegraph

$16000/year
  • Enterprise$16,000/yr
    • Scales with team size
    • Credits for AI features per user
    • Deep Search

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.

Choose Sourcegraph if

  • You work on Web, Self-hosted.

Questions people ask

Is PubNub or Sourcegraph better?
Neither clearly leads. PubNub starts at Free and Sourcegraph at $16000/year, and user ratings are close enough to be indistinguishable. Choose on capability and platform support.
Which is cheaper, PubNub or Sourcegraph?
PubNub has a free tier; the other does not. Paid plans start at Free for PubNub and $16000/year for Sourcegraph.
Does PubNub or Sourcegraph run on more platforms?
PubNub runs on Web, iOS, Android, API. Sourcegraph runs on Web, Self-hosted.
Can I use PubNub for free?
Yes. PubNub has a free tier, so you can try it without paying. Sourcegraph starts at $16000/year.
What is PubNub best used for?
PubNub is most often used for building realtime chat applications, streaming live iot sensor data, adding presence indicators to collaborative apps, running edge logic with serverless functions on realtime events. Of those, building realtime chat applications and streaming live iot sensor data are not what Sourcegraph is typically brought in for.
What can PubNub do that Sourcegraph cannot?
PubNub covers Pub/sub messaging, Presence tracking, Message persistence, Serverless Functions.

Answered from the vendors’ own pages

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
Sourcegraph: How much does Sourcegraph cost?

Sourcegraph's pricing page lists a single Enterprise plan starting at $16K, which it describes as a minimum annual contract. The price includes credits for AI features and scales with team size. Volume pricing is available through sales.

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
Sourcegraph: Does Sourcegraph have a free plan?

The pricing page lists only the Enterprise plan and a Contact sales button, with no free or self-serve tier shown. Its FAQ includes a question about a free trial, but the answer was not visible in the page text. Sourcegraph does offer a public code search across more than 1M public repositories.

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
Sourcegraph: Can Sourcegraph be self-hosted?

Yes. The Enterprise plan includes single-tenant cloud, and the page also lists self-hosted as a deployment option. Enterprise admin and security controls are part of the plan.

Source
Sourcegraph: How do Sourcegraph AI credits work?

Credits for AI features are included per user and can be pooled across the organisation. The pricing page states there is no monthly credit expiry, that purchased credit buckets roll over on renewal, and that larger volume credit buckets are an add-on.

Source
Sourcegraph: Does Sourcegraph work with AI coding agents?

Sourcegraph offers a full MCP server, plus GraphQL and REST APIs and a CLI. The pricing page says it works with Claude Code, Cursor, Codex, Amp and more, giving agents context from the indexed codebase.

Source
Share

Related pages

Other head to heads