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 徹底比較|ストリーミングメッセージング選び方 (2026)
Google Pub/Sub / Apache Kafka (Confluent / MSK) / AWS Kinesis の徹底比較。料金、Throughput、順序保証、Exactly-once、Schema Registry、Push vs Pull、典型ユースケースを 2026 年最新版で網羅。
GCP vs AWS ストレージ・DB 徹底比較|GCS/S3・BigQuery/Redshift・Spanner/DynamoDB (2026)
GCP と AWS のストレージ・データベースを徹底比較。Cloud Storage vs S3、BigQuery vs Redshift、Spanner vs DynamoDB / Aurora DSQL、Cloud SQL vs RDS、AlloyDB vs Aurora、Firestore vs DynamoDB、Bigtable vs DynamoDB を 2026 年最新版で網羅。
GCP vs AWS コンピュート徹底比較|EC2/GCE・GKE/EKS・Lambda/Cloud Run・料金 (2026)
GCP と AWS のコンピュートサービスを徹底比較。Compute Engine vs EC2、GKE vs EKS、Cloud Run vs Lambda、App Engine vs Elastic Beanstalk、GPU/TPU、Arm 系 (Axion vs Graviton)、料金体系・Sustained Use Discount を 2026 年最新版で網羅。
GCP Professional Cloud Developer (PCD) 完全ガイド|Cloud Run・GKE・CI/CD・APM
Google Cloud Professional Cloud Developer の試験範囲、Cloud Run / GKE / Cloud Build / Cloud Trace、AWS DVA / Azure AZ-204 比較、学習ロードマップを徹底解説。
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...