Pub/Sub
Pub/Sub is a managed messaging service that supports asynchronous communication between producers and consumers in distributed systems.
What it does
Messaging system.
When to use
Use Pub/Sub when you need event-driven architecture, asynchronous communication, or decoupling between services.
Key Concepts
Topics receive published messages.
Subscriptions deliver messages to consuming systems.
Async messaging improves resilience and reduces direct coupling.
It is commonly used in scalable, event-driven architectures.
Common Use Cases
Connecting distributed systems through events.
Handling async background processing.
Building event-driven architectures in GCP.
Interview Questions
What is Pub/Sub?
What is the difference between a topic and a subscription?
Why use asynchronous messaging between services?