Cloud PubSub

Introduction to Google Cloud Pub/Sub

Basic introduction of Google Cloud Pub/Sub

ta-ching chen

2 minute read


Google Cloud Pub/Sub is a messaging service which lets independent applicaitons exchange messages with Publish/Subscribe model with others. There are pros and cons when using message servcie as a messaging middleware:


  • reduce coupling between applications
  • use message queue as buffer to hanlde large message request
  • publish/subscribe to different topic depending on the situation


  • the instantaneity, ordering and duplication of message are not guaranteed
  • understand how the message is being delivered to avoid unexpected behavior of applicaitons.

Here are couple things that we may consider before choosing which message service to use:

  • performance of message delivery
  • scalability, reliability and availability