GCP-PUB-SUB
GCP Pub/Sub (EDI) is Google Cloud's globally distributed pub/sub messaging service — sub-second latency, ideal for near-real-time EDI pipelines and 1-to-N broadcast.
Definition
Pub/Sub uses a Topic / Subscription model. Each Subscription can be pull (consumer pulls) or push (Pub/Sub POSTs to an HTTPS endpoint). Guarantees at-least-once delivery, 7-day retention, ordered messages (since 2021).
Origin
Launched in 2015 by GCP. Inspired by Google-internal Borg-NS and Colossus, designed for throughputs above 1M msg/s.
Use
An EU buyer publishes every received INVOIC on the 'invoice-eu' Topic. Pull Subscriptions: SAP ERP, Treasury, Audit. Push Subscription: BigQuery data warehouse (streaming load). All three consume in parallel with no dependency.
Related terms
- AWS SQS — AWS counterpart.
- Azure Service Bus — Azure counterpart.
- Kafka — log alternative.
- Event sourcing — close pattern.