Spring Cloud Stream - Publish Message to RabbitMQ
Spring cloud stream is a framework for building highly scalable event-driven microservices connected with shared messaging systems. It uses the Spring Integration project to provide connectivity to a message broker. It unifies lots of popular messaging platforms behind one easy to use API including RabbitMQ, Apache Kafka, Google PubSub etc..Without this framework, we will be writing lot of boilerplate codes to support different messaging platform, and it will go beyond maintainable. Spring Cloud Stream relies on the concept of binder to handle the integration with a messaging or event streaming framework. The binders support the core feature of modern messaging/eventing systems, such as Publish/Subscribe, Consumer Groups, Partitioning, Message-driven consumers, Polling based consumers. Let's see some of the concepts, before we jump into the code Binder: A binder handles the integration with single framework. This abstraction allows your code to be middlewar...