Skip to content

ItsCosmas/springboot-rabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Hacking around Springboot and Rabbit MQ

Start RabbitMQ

docker-compose up

Run App

mvn spring-boot:run

Test

curl --location --request POST 'http://localhost:8000/api/v1/publish' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fullName":"Cosmas Lorem",
    "phone":"25412345678",
    "email":"[email protected]"
}'

Response

{"code":200,"message":"Message Published"}

stdout

NotificationRequest(fullName=Cosmas Lorem, phone=25412345678, [email protected])
------------------------
Publishing to internal.exchange using routingKey internal.notification.routing-key. Payload: NotificationRequest(fullName=Cosmas Lorem, phone=25412345678, [email protected])
------------------------
------------------------
Published to internal.exchange using routingKey internal.notification.routing-key. Payload: NotificationRequest(fullName=Cosmas Lorem, phone=25412345678, [email protected])
------------------------
------------------------
Consumed message from queue
NotificationRequest(fullName=Cosmas Lorem, phone=25412345678, [email protected])
------------------------

Inspect at Rabbit Management UI Dashboard - http://localhost:15672/

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely:

Releases

No releases published

Packages

No packages published

Languages