Skip to content

dilaverdemirel/spring-cloud-stream-rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##Spring Cloud Stream and RabbitMQ Example

This repository is about message driven communication with the Spring Cloud Stream and RabbitMQ.

Before run the applications, you need a RabbitMQ instance.

docker run -d --name my-rabbit -p 15672:15672 -p 5672:5672 rabbitmq:3-management

For run the applications;

mvn clean package
mvn spring-boot:run

After that, you can access payment service on http://localhost:5000/swagger-ui.html

Or you can send manually a request for payment to payment service;

curl -X POST "http://localhost:5000/payments" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"id\": \"payment-id\", \"price\": -1, \"quantity\": 1, \"stockItemId\": \"red-pen-1\"}"

You can access detailed information about the repository on medium

Releases

No releases published

Packages

No packages published

Languages