Pub/Sub is a messaging and event ingestion service that acts as the glue between the loosely coupled systems. It allows us to send and receive messages between independent applications whilst decoupling the publishers of events and subscribers to those events. This means the publishers do not need to know anything about their subscribers. Pub/Sub is fully managed and therefore offers scale at ease, making it perfect for a modern stream analytics pipeline.
There are some core concepts that you should understand:
- A publisher is an application that will create and send messages to a topic.
- A topic is a resource to which messages are sent by publishers.
- A subscription represents the stream of messages from a single topic to be delivered to the subscribing application. Subscribers will either receive the message through pull or push, meaning the Pub/Sub pushes the messages...