Google Cloud Pub/Sub
Global, real-time messaging service for event-driven applications.
Message Delivery Latency
<100ms
Minimum Throughput
10 KB/s per topic
Free Tier
First 10 GB per month free
Availability
Global
About Google Cloud Pub/Sub
Google Cloud Pub/Sub provides a simple, reliable, and scalable foundation for stream analytics and event-driven computing systems. It allows developers to decouple publishers and subscribers, enabling secure and highly available communication between independently written applications. Key features include at-least-once message delivery, low-latency replication, fine-grained access control, and message filtering. Pub/Sub integrates seamlessly with other Google Cloud services like Cloud Functions, Dataflow, and BigQuery, making it ideal for use cases such as real-time data ingestion, asynchronous microservice communication, and parallel processing workloads.
Core Concepts
Topic
A named resource to which messages are sent by publishers.
Subscription
A named resource representing the stream of messages from a single, specific topic, to be delivered to the subscribing application.
Publisher
An application that creates and sends messages to a Pub/Sub topic.
Subscriber
An application that receives messages from a Pub/Sub subscription.
Message
The combination of data and (optional) attributes that a publisher sends to a topic.
Key Features
Delivery Modes
Supports both Push (webhook delivery) and Pull (client-initiated fetch) subscriptions.
At-Least-Once Delivery
Ensures that each message is delivered at least once to every subscription.
Message Filtering
Subscribers can filter messages based on their attributes, receiving only the messages they are interested in.
Global Availability
Pub/Sub is a global service, allowing publishers and subscribers to operate from any Google Cloud region.
Integrations
Native integration with Google Cloud services like Cloud Functions, Dataflow, Cloud Storage, and BigQuery.