_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Google Cloud Pub/Sub — Messaging

24. 10. 2023 1 min read intermediate

Cloud Intermediate

Google Cloud Pub/Sub — Messaging

GCPPub/SubMessagingStreaming 5 min read

Pub/Sub topics, subscriptions, exactly-once delivery a BigQuery export.

Basics

gcloud pubsub topics create orders
gcloud pubsub subscriptions create order-processor \
  --topic=orders --ack-deadline=60 \
  --enable-exactly-once-delivery \
  --dead-letter-topic=orders-dlq --max-delivery-attempts=5

Push vs Pull

  • Pull — subscriber stahuje zprávy, kontroluje throughput
  • Push — HTTP POST na endpoint, ideální pro Cloud Run/Functions

BigQuery Subscription

gcloud pubsub subscriptions create bq-export \
  --topic=orders --bigquery-table=proj:dataset.orders \
  --use-topic-schema --write-metadata

Zero-code streaming do data warehouse.

Summary

Pub/Sub = plně managed messaging s globálním reach. Exactly-once + BQ subscription = silný základ.

Need Help with Implementation?

Our team has experience designing and implementing modern architectures. We’re happy to help.

Free Consultation

Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.