Skip to content

apuntesdejava/reactive-microservice-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ejemplo de Reactividad con Spring Boot (como productores) y Quarkus (como consumidor)

Compilación y ejecución

Server 01

cd spring-server01
.\mvnw clean package
java "-Dserver.port=8090" -jar target\server01-0.0.1-SNAPSHOT.jar 
$response = Invoke-RestMethod -Uri 'http://localhost:8090/clients' -Method GET 
$response

Server 02

cd spring-server02
.\mvnw clean package

java "-Dserver.port=8070" -jar target\server02-0.0.1-SNAPSHOT.jar

Probando

$response = Invoke-RestMethod -Uri 'http://localhost:8070/products' -Method GET 
$response

Client (Quarkus)

cd consume

.\mvnw clean package

java -jar target\quarkus-app\quarkus-run.jar

Probando ejecución

$headers=@{}
$headers.Add("content-type", "application/json")
$response = Invoke-RestMethod -Uri 'http://localhost:8080/sell' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
  "productId": 1,
  "clientId": 2,
  "count": 2
}'

$response

About

This is an example of Spring Boot and Quarkus interacting with real reactivity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors