Spring Cloud Stream is used to create individual microservices involved in a stream and define the connection points to a message broker.
Spring Cloud Stream is built on top of two important Spring Projects:
- Spring Boot: To enable the creation of production-ready microservices
- Spring Integration: To enable microservices to communicate over message brokers
Some of the important features of Spring Cloud Stream are as follows:
- Bare minimum configuration to connect a microservice to a message broker.
- Support for a variety of message brokers--RabbitMQ, Kafka, Redis, and GemFire.
- Support for persistence of messages--in case a service is down, it can start processing the messages once it is back up.
- Support for consumer groups--in cases of heavy loads, you need multiple instances of the same microservice. You can group all these microservice instances under a single...