Skip to content
BENIBIX Learn

Google Cloud Pub/Sub

Data📥 Ingestion & StreamingEvent Streaming

Also known as Pub/Sub, GCP Pub/Sub, Cloud Pub/Sub

A Google tool. It sends one event to many readers.

Think of it like

It is like a school notice board. One person pins a note. Each class that signed up gets a copy.

Example

An app sends each new signup to a topic. One subscription sends a welcome email. Another loads the signup into BigQuery.

Why it matters

It removes all server work from streaming on Google Cloud. Each new reader is just a new subscription.

Definition

Google Cloud Pub/Sub is Google Cloud's managed service for messages and events. Publishers send messages to a topic. Each subscription on that topic gets its own copy of every message. Readers pull the messages, or Pub/Sub pushes them to a web address. It grows by itself. There are no shards or servers to manage.

Common mistake

Thinking each message comes just once. By default it comes at least once, so a reader may see it twice.

Key takeaways

  1. 1
    Topics. Publishers send to a topic.
  2. 2
    Subscriptions. Each one gets every message.
  3. 3
    No servers. It scales by itself.