Cloud Pub/Sub is GCP's global, serverless messaging service that loosely couples publishers and subscribers. It's the core of microservice-to-microservice communication, streaming pipelines, and IoT ingestion.
| Item | Push | Pull |
|---|---|---|
| Delivery | Pub/Sub -> HTTPS endpoint | Subscriber fetches |
| Scaling | Controlled on the endpoint side | Parallelized by subscriber count |
| Main use | Cloud Run / Cloud Functions | Custom apps, Dataflow |
| Rate control | Difficult (slow down via HTTP 429) | Easy |
| Exactly-once | Not supported | Supported (Pull only) |
| Item | Pub/Sub | Pub/Sub Lite |
|---|---|---|
| Scaling | Global, automatic | Zonal, capacity-reserved |
| Pricing | Pay-as-you-go (higher) | Reserved (cheaper, ~10x lower) |
| SLA | 99.95% | 99.5% |
| Main use | Microservices, IoT | Kafka alternative, log aggregation |
| Item | Pub/Sub | AWS SNS+SQS | Kafka (Confluent) |
|---|---|---|---|
| Architecture | Serverless, global | SNS + SQS separate | Managed cluster |
| Ordering | Ordering Key | FIFO Queue | Within a partition |
| Throughput | High | Medium | Highest |
| Pricing | $40/TB | SNS $0.5/M + SQS $0.4/M | VM cost + license |
| Operations | None | None | Requires management |
Should I choose Push or Pull?
Push delivers directly to an HTTPS endpoint (Cloud Run / Functions); Pull lets the subscriber fetch messages actively. Pull wins on scaling flexibility, Push wins on simplicity.
How does it differ from Pub/Sub Lite?
Standard Pub/Sub is serverless, global, and auto-scaled; Pub/Sub Lite uses reserved zonal capacity and is roughly 10x cheaper. Lite is a candidate Kafka replacement.
What is an Ordering Key?
Messages sharing the same key are delivered in order. Different keys are processed in parallel; within a key, order is preserved. Essential for use cases like chat messages.
Is exactly-once delivery possible?
Yes, with a Pull subscription and exactly-once enabled. Duplicates are fully eliminated at the cost of slightly higher latency.
What is a Dead Letter Topic?
A mechanism that forwards messages a subscriber has failed n times to a separate topic. Essential for isolating and reprocessing problematic messages.
How does it compare to AWS SNS/SQS and Kafka?
Pub/Sub unifies SNS (pub/sub) and SQS (queue). Versus Kafka, it wins on serverless, global, auto-scaling; Kafka still leads on raw throughput.
What is the pricing model?
Billed on ingest + delivery data volume ($40/TB). Pub/Sub Lite is billed per reserved throughput unit. Includes a 10 GB monthly free tier.
Is there a Schema Registry?
Yes, Pub/Sub Schemas supports Avro and Protocol Buffers schemas, guaranteeing schema consistency between publishers and subscribers.
Related Articles: Messaging / Data
Pub/Sub vs Kafka vs Kinesis: Streaming Comparison (2026)
Streaming platform comparison — Pub/Sub managed, Kafka self-managed, Kinesis. Decision framework.
GCP vs AWS Storage & DB Comparison (2026)
Cloud Storage vs. S3, BigQuery vs. Redshift, Spanner vs. Aurora. Honest feature-by-feature comparison.
GCP vs AWS Compute Comparison: GKE, Cloud Run, Functions vs EKS, Fargate, Lambda (2026)
Compute service comparison — feature parity, pricing, ergonomics. The decision framework for multi-cloud.
Professional Cloud Developer (PCD): Complete Guide (2026)
Pass the PCD exam — Cloud Run, GKE, App Engine, Cloud SQL/Spanner. The developer-focused Professional cert.
Google Cloud is a trademark of Google LLC. For the latest information, see the Pub/Sub official docs.
Practice with certification-focused question sets
View GCP exam prep pageNicheeLab Editorial Team
NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.
Google Cloud Certification Roadmap (2026)
Choose your GCP certification path — Foundational, Associate...
CDL Cloud Digital Leader: Complete Exam Guide (2026)
Pass the Cloud Digital Leader exam — cloud business value, G...
GAIL Generative AI Leader: Complete Exam Guide (2026)
Pass the Generative AI Leader exam — Gemini, Vertex AI, Work...
Vertex AI Fundamentals for GCP Certs (2026)
Vertex AI basics every cert candidate needs — Workbench, Pip...
Associate Cloud Engineer (ACE): Complete Guide (2026)
Pass the Associate Cloud Engineer exam — Console, gcloud, pr...