Spring Cloud Stream
We will not focus on Spring Cloud in this part; we will do that in Part 2 of the book, from Chapter 8, Introduction to Spring Cloud, to Chapter 14, Understanding Distributed Tracing. However, we will bring in one of the modules that's part of Spring Cloud: Spring Cloud Stream. Spring Cloud Stream provides a streaming abstraction over messaging, based on the publish and subscribe integration pattern. Spring Cloud Stream currently comes with built-in support for Apache Kafka and RabbitMQ. A number of separate projects exist that provide integration with other popular messaging systems. See https://github.com/spring-cloud?q=binder for more details.The core concepts in Spring Cloud Stream are as follows:
- Message: A data structure that’s used to describe data sent to and received from a messaging system.
- Publisher: Sends messages to the messaging system, also known as a supplier.
- Subscriber: Receives messages from the messaging system, also known as a consumer...