Summary
Integrating asynchronous messaging into distributed systems affords a large degree of protection against many common concerns. While not a silver bullet, Cloud Pub/Sub is general enough that it warrants consideration when building any distributed system on Google Cloud. With low latency, horizontal scaling, intelligent routing, and the capacity to deliver hundreds of millions of messages per second, Cloud Pub/Sub is a viable option for solutions of any size.
Cloud Pub/Sub provides a natural integration point between both managed and customer services. Capitalizing on this, Google provides great support for Pub/Sub in many Google Cloud Platform products and services. Due to its scale and event-based nature, Cloud Pub/Sub is particularly ideal for working with real-time big data, a topic we will expand on in Chapter 15, Integrating with Big Data Solutions on GCP.
As we've seen, one use case of Cloud Pub/Sub for big data streaming is working with IoT devices, which often generate huge...