Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 1.06 KB

File metadata and controls

11 lines (6 loc) · 1.06 KB

SpringBoot App with MySQL RabbitMQ using Docker

In this sample application, I have used Docker to setup RabbitMQ & MySQL database. You can find the docker-compose.yml file below

docker-compose.yml File for MySQL & RabbitMQ

When application starts, SpringBoot CommandLineRunner will post an Order in RabbitMQ.

For sample purpose, I have kept both RabbitMQ sender & receiver in this same application.

RabbitMQ Receiver class will read the Order object from Queue & insert the Order details in MySQL table