https://grokonez.com/java-integration/distributed-system/create-spring-rabbitmq-producerconsumer-application-springboot

RabbitMQ – How to create Spring RabbitMQ Producer/Consumer applications with SpringBoot

RabbitMQ is one of the most popular open source message broker which meets high-scale, high-availability requirements. So in the tutorial, JavaSampleApproach will guide how to create Spring RabbitMQ Producer/Consumer applications by SpringBoot.

Related articles:

I. SpringBoot RabbitMQ

In the tutorial, we create 2 SpringBoot applications {Producer, Consumer} for working with RabbitMQ: rabbitmq - architecture - copyright
  • Producer will send messages to RabbitMQ Exchanges with a routingKey. RabbitMQ uses routingKey to determine which queues for routing messages.
  • Consumer listens on a RabbitMQ Queue to receive messages.

With SpringBoot, we use spring.rabbitmq.* for controlling RabbitMQ configuration:


spring.rabbitmq.host=localhost
spring.rabbitmq.port=5672
spring.rabbitmq.username=guest
spring.rabbitmq.password=guest

Producer uses AmqpTemplate to send messages:

More at:

https://grokonez.com/java-integration/distributed-system/create-spring-rabbitmq-producerconsumer-application-springboot

RabbitMQ – How to create Spring RabbitMQ Producer/Consumer applications with SpringBoot

#rabbitmq #springboot #consumer #producer

RabbitMQ - How to create Spring RabbitMQ Producer/Consumer applications with SpringBoot
1.40 GEEK