Skip to content

softurk/springboot-docker-rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot and RabbitMq with Docker

Main Information

📖 Information

  • It is a structure of message-queueing
  • RabbitMQ just transfers data which is coming from Producer to its subcriber which is called as Consumer by turns
  • Here is the explanation of the project
    • In Producer part, the project sends a message containg text or POJO to Rabbit Server
    • As Producer has no idea about queue , the message is transmitted to the queue over the exchange according to the queue routing key
    • Then Consumer part listens the queue which works with FIFO logic and consume the message. After that, it completes the process

🔨 Run the App

1 ) Install Docker Desktop. Here is the installation link : https://docs.docker.com/docker-for-windows/install/

2 ) Open Terminal under resources folder to run RabbitMq on Docker Container

    docker-compose up -d

2 ) Show container which runs on Docker

    docker ps

3 ) Open RabbitMq in localhost

    http://localhost:15672/

4 ) Enter username and password which are defined in application.properties file

    spring.rabbitmq.username=rabbitmq
    spring.rabbitmq.password=123456

5 ) Open Postman and define body before implementing post request to defined url

    http://localhost:8080/order/dinnerRestaurant

    {
        "name" : "Adnan"
        "qty" : 1
        "price" : 10
    }

6 ) After submission, click connection in the navigation bar to trace packets and then click queue to determine if it is empty

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages