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":"test@mail.dev"
}'

Response

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

stdout

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

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