Skip to content

Rapter1990/springbootrabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot and RabbitMq via 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" : "Noyan"
        "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

Screenshots

Click here to show the screenshots of project

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10

Releases

No releases published

Packages

No packages published

Languages