What is Cloud Pub/Sub?
Answer: Pub/Sub is a fully managed, globally distributed messaging service implementing the publish-subscribe pattern. Publishers send messages to a topic, subscribers receive them through subscriptions, and Pub/Sub decouples the two — publishers do not know who consumes, and consumers can be added without changing the publisher. It scales to millions of messages per second with no capacity planning.
Why interviewers ask this: The property to emphasise is decoupling in both time and space: a subscriber that is down does not block the publisher, and messages are retained until acknowledged or until the retention window expires. That is what makes it the backbone of event-driven architectures.
