Messaging and ingestion for event-driven systems and streaming analytics.

Try Pub/Sub free
  • action/check_circle_24px Created with Sketch.

    Integrated with Dataflow and BigQuery to form the Google Cloud-native Stream Analytics solution

  • action/check_circle_24px Created with Sketch.

    Auto-scaling and auto-provisioning with support from zero to hundreds of GB/second

  • action/check_circle_24px Created with Sketch.

    Independent quota and billing for publishers and subscribers

  • action/check_circle_24px Created with Sketch.

    Global message routing to simplify multi-region systems

  • action/check_circle_24px Created with Sketch.

    Push and pull message delivery

High availability made simple

Synchronous, cross-zone message replication and per-message receipt tracking ensures reliable delivery at any scale.

No-planning, auto-everything

Auto-scaling and auto-provisioning with no partitions eliminates planning and ensures workloads are production ready from day one.

Native Google Cloud integrations

Natively integrated with Dataflow, BigQuery, and other Google Cloud best-in-class services and compliance features, Pub/Sub enables rapid and trusted development of cloud service integrations.

Key features

Stream analytics and connectors

Native Dataflow integration enables reliable, expressive, exactly-once processing and integration of event streams in Java, Python and SQL.


Open REST and gRPC APIs with client libraries in seven languages support cross-cloud and hybrid deployments.

Cost-optimized ingestion with Pub/Sub Lite

Complimenting Pub/Sub, Pub/Sub Lite (beta) aims to be the lowest cost option for high volume  event ingestion. Unlike Pub/Sub, Pub/Sub Lite is zonal and puts you in control of capacity management.

View all features


Sky case study
Sky scales event publishing with Pub/Sub to build its next generation Sky Q box
Read the story

Story highlights

  • Publishing up to 600 million events per day

  • Zero diagnostic data loss from millions of Sky Q boxes

  • Replaced on-premises platform in only six weeks



Google Cloud Basics
What is Pub/Sub?

Get a comprehensive overview of Pub/Sub; from core concepts and message flow to common use cases and integrations.

Publishing messages to topics

Find information about publishing messages to topics.

Subscriber overview

Learn how subscriptions work in Pub/Sub.

Quickstart: Using Client Libraries

See how the Pub/Sub service allows applications to exchange messages reliably, quickly, and asynchronously.

Quickstart: Stream processing with Dataflow

Learn how to use Dataflow to read messages published to a Pub/Sub topic, window the messages by timestamp, and write the messages to Cloud Storage.

Use cases

Use case
Stream analytics

Google’s stream analytics makes data more organized, useful, and accessible from the instant it’s generated. Built on Pub/Sub along with Dataflow and BigQuery, our streaming solution provisions the resources you need to ingest, process, and analyze fluctuating volumes of real-time data for real-time business insights. This abstracted provisioning reduces complexity and makes stream analytics accessible to both data analysts and data engineers.

Use case
Asynchronous microservices integration

Pub/Sub works as a messaging middleware for traditional service integration or a simple communication medium for modern microservices.   Push subscriptions deliver events to serverless webhooks on Cloud Functions, App Engine, Cloud Run  or custom environments on Kubernetes Engine or Compute Engine. Low latency pull delivery is available when exposing webhooks is not an option or for efficient handling of higher throughput streams.

All features

At-least-once delivery Synchronous, cross-zone message replication and per-message receipt tracking ensures at-least-once delivery at any scale.
Open Open APIs and client libraries in seven languages support cross-cloud and hybrid deployments.
Exactly-once processing Dataflow supports reliable, expressive, exactly-once processing of Pub/Sub streams.
No provisioning, auto-everything Pub/Sub does not have shards or partitions. Just set your quota, publish, and consume.
Compliance and security Pub/Sub is a HIPAA-compliant service, offering fine-grained access controls and end-to-end encryption.
GCP-native integrations Take advantage of integrations with multiple services, such as Cloud Storage and Gmail update events and Cloud Functions for serverless event-driven computing.
3rd party and OSS integrations Pub/Sub provides 3rd party integrations with  Splunk & Datadog for logs along with Striim and Informatica for data integration. Additionally, OSS integrations are available through Confluent Cloud for Apache Kafka and  Knative Eventing for Kubernetes-based serverless workloads.
Seek and replay Rewind your backlog to any point in time or a snapshot, giving the ability to reprocess the messages. Fast forward to discard outdated data.
Dead Letter Topics Dead letter topics allow for messages unable to be processed by subscriber applications to be put aside for offline examination and debugging so that other messages can be processed without delay.
Filtering Pub/Sub can filter messages based upon attributes in order to reduce delivery volumes to subscribers.


Pub/Sub pricing is calculated based upon monthly data volumes. The first 10GB of data per month is offered at no charge. 

Monthly data volume1 Price per TB2
First 10 GB $0.00
Beyond 10 GB $40.00

1 For detailed pricing information, please consult the pricing guide.

2 TB refers to a tebibyte, or 240 bytes.

If you pay in a currency other than USD, the prices listed in your currency on Cloud Platform SKUs apply.