Connect micro services in your platform by using PubSub
Rating: 9 out of 10
IncentivizedUse Cases and Deployment Scope
We use Google Cloud Pub/Sub to communicate between micro services. By using a Pub/Sub topic, we can delegate not so time critical tasks to be processed asynchronously by another micro service.
Using a BigQuery subscription, we can automatically write events sent to a Pub/Sub topic into a BigQuery table.
Pros
- Push subscription that can trigger a HTTP endpoint
- Supports retries
- BigQuery subscription for writing into a BigQuery table
Cons
- Allow write and read of messages more than 10 MB
- Support rate at which HTTP endpoints are triggered to reduce scale requirements on downstream services
- Support replay of messages
Likelihood to Recommend
A Google Cloud Pub/Sub topic can be used to delegate not so time critical processing to be done asynchronously in another micro service. Google Cloud Pub/Sub supports a push subscription which can trigger a HTTP endpoint. Use a Google Cloud Pub/Sub BigQuery subscription to write into a BigQuery table. Google Cloud Pub/Sub is not suited when the incoming message traffic is bursty.
