Favicon of Google Cloud Pub/Sub

Google Cloud Pub/Sub

Google Cloud Pub/Sub is an asynchronous, scalable messaging service that decouples producers from consumers, offering push and pull subscriptions, configurable exactly-once delivery, and roughly 100-millisecond latency.

LicenseCommercial
DeploymentManagedServerless
PricingFreeSubscription
Operational complexityLow
WorkloadStreaming

Use it when

  • You are on Google Cloud and want messaging with zero capacity management; throughput is a bill, not a setting.
  • Consumers are serverless or intermittent; push subscriptions POST to webhooks, so nothing needs to run continuously.
  • The stream should land in BigQuery, Bigtable, or Cloud Storage without consumer code; direct subscriptions write there natively.
  • You need per-message parallelism at scale more than partition semantics, with exactly-once delivery configurable where it matters.

Think twice when

  • Strict per-key ordering is central to the design; Pub/Sub is a messaging service, not a partitioned log, and its ordering contract differs from Kafka's.
  • Long, repeated replay of history is routine; retention tops out at 31 days and seek-based replay is not the primary access pattern.
  • Portability matters; it is Google's API, evaluated and used almost entirely inside Google Cloud.

How it runs

Fully managed and serverless over gRPC and REST, with automatic scaling and a global namespace (storage stays regional across three zones). Pull and push subscriptions, dead-letter topics, retry policies, and per-topic Single Message Transforms with JavaScript UDFs. Billing is per TiB of throughput plus storage and egress.

Details

Compare

How Google Cloud Pub/Sub answers the questions Event Streaming turns on.

Event Streaming
How it works
ProtocolOwn API over gRPC and REST
Consumption modelAcknowledged messaging, pull or push; replay by seek
StorageManaged; retention up to 31 days
Delivery guaranteeAt-least-once; Exactly-once configurable
Running it
What you runNothing: no capacity to provision at all
ScalingAutomatic; throughput is a bill, not a setting
Multi-regionGlobal namespace, but storage stays in one region across three zones
Connections
ConnectorsImport topics from Kafka, Kinesis and GCS; direct subscriptions to BigQuery and Bigtable
TransformationsSingle Message Transforms, including JavaScript UDFs, per topic or subscription
Cost
Billing unitMessage throughput by the TiB, plus storage and egress

Share:

Alternatives to Google Cloud Pub/Sub

Favicon

 

  
  
Favicon

 

  
  
Favicon