It is a message-oriented middleware to the cloud that is simple and provides scalability, flexibility, and reliability for streaming analytics and event-driven computing systems.
It provides many-to-many asynchronous messaging, decoupling senders and receivers. It allows secure and highly available communication between independently written applications. The following image shows the architecture of Cloud Pub/Sub: