This is an example of microservices using Java.
This repository has a distributed architecture system using four services, where exists a service layer that invoke others two microservices, such spring boot and microprofile service. These microservices call backend api as you can see in image below:
- ricas-api-gateway
- ricas-microservices
- ricas-microprofile
- ricas-backend
- Spring boot
- Wildfly
- Apache Camel
- Microprofile Thorntail
Navigate until ricas-backend root and run:
- mvn clean wildfly:run
Navigate until ricas-api-gateway and run:
- mvn spring-boot:run -Dserver.port=8380
Navigate until ricas-microservices and run:
- mvn clean spring-boot:run -Dserver.port=8180
Navigate until ricas-microprofile and run:
- mvn thorntail:run -Dswarm.network.socket-binding-groups.standard-sockets.port-offset=200
Type the follow URL on browser
http://localhost:8380/api/gateway
- Output ["Hello microservices Spring Boot application from the cluster backend at host: 192.168.68.2","Hello microprofile from the cluster backend at host: 192.168.68.2"]