Skip to content
freetier.wiki

Type at least 2 letters.

Enter to open · Esc to close

Pub/Sub

Google Cloud Pub/Sub includes 10 GiB of monthly Basic message throughput per Cloud Billing account, then charges $40 per TiB, with separate rates for import topics and export subscriptions.

Google Cloud Pub/Sub is a messaging service where publishers send events to a topic and Pub/Sub delivers them to every subscription, so services can talk to each other without waiting.

By Google CloudMessagingChecked ✓ 23 Nov 2026

Is it a fit?

Good fit

Use Pub/Sub to pass events between services on Google Cloud, or to feed a streaming or analytics pipeline.

  • event-driven systems
  • microservices
  • data pipelines

Not a fit

Avoid it if you cannot enable billing on a Google Cloud project, if you need on-premises hosting, or if your traffic spikes are hard to predict and you need a fixed bill.

  • you need on-premises hosting
  • you cannot enable billing
  • you have unpredictable high-volume spikes

You use Pub/Sub in the Google Cloud console, with the gcloud CLI, or with client libraries. You create a topic, add subscriptions, and publish. It suits teams that build event-driven systems or data pipelines on Google Cloud.

What the free plan gives you

Every calendar month, the first 10 GiB of throughput billed as the Message Delivery Basic SKU is free for a billing account. Throughput is the total bytes written to a topic plus the bytes read from subscriptions, so fan-out adds delivery usage. The measured message includes its encoded body, attributes, timestamp, message ID and applicable optional fields. After the free amount the price is $40 per TiB in all Google Cloud regions.

A minimum of 1 KB applies per standard request, so batching small messages can save money. Automatically acknowledged filtered messages are billed on their actual size. The free amount does not cover BigQuery subscriptions, Cloud Storage subscriptions, or import topics.

When you hit a limit

Paid usage beyond 10 GiB costs $40/TiB without a hard stop. BigQuery/Cloud Storage subscriptions cost $50/TiB; import topics cost $50 or $80/TiB by source.

Retained topic messages, retained acknowledged subscription messages and snapshots cost $0.27/GiB-month. Snapshotting an existing unacknowledged backlog adds a one-time seven-day storage charge. Cross-region/internet transfer can incur VPC charges; standard Pub/Sub has no zone-transfer fee.

Free Trial credits cover eligible excess without automatic charges; automatic overage billing begins after choosing Paid billing. Monitor throughput, retention and transfer separately because each can create charges outside the headline allowance.

Gotchas

  • The 10 GiB is per billing account, not per project, so projects on the same billing account share it.
  • A subscription whose backlog sits unacknowledged for more than 1 day can start to incur storage charges.
  • The console quickstart says one pull can return zero messages for a low message volume. Click Pull a few times.

Alternatives in this atlas

  • SNS: when you run on AWS and want topics that push to queues and functions.
  • Event Grid: when you run on Azure and route events between Azure services.
  • SQS: when you want a queue that consumers pull from on AWS.

Questions people ask

Is Google Cloud Pub/Sub free?

Partly. The first 10 GiB of throughput each month is free for a billing account. After that it costs $40 per TiB.

Does Pub/Sub need a credit card?

You need a Google Cloud project with billing enabled. The quickstart tells you to verify that billing is enabled for the project.

How is Pub/Sub throughput counted?

Throughput is the total bytes written to a topic and read from a subscription. Standard requests have a 1 KB minimum, except for messages that Pub/Sub automatically acknowledges because they fail a filter.

How to get started

  1. Sign in to your Google Cloud account, then select or create a Google Cloud project.
  2. Verify that billing is enabled for the project and enable the Pub/Sub API.
  3. In the console, open the Pub/Sub Topics page, select Create topic, and enter a Topic ID. A default subscription is created with it.
  4. Publish a message from the Messages tab of the topic page with Publish message.
  5. Open the subscription, go to its Messages tab, and select Pull to read the message. You can also use the client libraries or the gcloud CLI.

Other free messaging options

Same category, safest first.

Google Cloud · Messaging
No charge for sending messages on the Spark or Blaze plan · Default quota of 600k downstream messages per minute per project · Payload of up to 4096 bytes per message
Billing risk: None
No card
Cloudflare · Messaging
Unlimited inbound emails on Workers Free · 200 routing rules per domain · 200 destination addresses per account
Billing risk: None
No card
Mailjet · Messaging
200 emails/day · 6,000 emails/month · API & SMTP access
Billing risk: None
No card
Postmark · Messaging
100 emails/month · No overages allowed · Up to 6 users
Billing risk: None
No card