An open API service indexing awesome lists of open source software.

https://github.com/px86/rabbitmq-spring-boot-demo

A project demonstarating the use of RabbitMQ with Spring Boot.
https://github.com/px86/rabbitmq-spring-boot-demo

amqp producer-consumer rabbitmq spring-boot

Last synced: 2 months ago
JSON representation

A project demonstarating the use of RabbitMQ with Spring Boot.

Awesome Lists containing this project

README

          

#+TITLE: RabbitMQ Spring-Boot Demo
#+AUTHOR: Pushkar Raj

* How to Run

Make sure you have =docker= and =docker-compose= installed, then run =docker-compose up -d= in the root folder of the project. It will spin up three docker containers - rabbitmq, producer and consumer.

The =producer= exposes an api endpoint for publishing messages onto the queue.

#+begin_src http
POST http:///api/v1/publish
Content-Type: application/json

{
"body": "hi there!"
}
#+end_src

The =consumer= logs the received message.