Cloud PubSub

Introduction to Cloud PubSub

Cloud PubSub is a managed processing queue/messaging service which works on the Publisher and Subscriber model. A publisher publishes the message to a particular topic and all the subscribers which are subscribed to that topic receive the message until the acknowledgment is not sent.

PubSub guarantees that message will be sent to the subscribers at least once. You can consider PubSub as an alternative to Apache Kafka which is an open-source alternative.

Let’s explore more about Cloud PubSub.

Introduction

The PubSub is used to decouple services from each other and enable them to scale independently. The services can communicate with each other using the queue and send updates to all other services which are dependent on them.

Apart from this, PubSub can also be used to gather real-time data from different IoT devices and push it to BigQuery for analysis. The Cloud PubSub is integrated with most of the GCP services by default. You can easily access the integration on the home page of the service itself. But for now, we will focus on Cloud PubSub only.

Let’s understand the PubSub workflow in detail.

Get hands-on with 1200+ tech skills courses.