The reactive microservice demo frontend
This service exposes a web user interface to run the reactive microservice demo. It lets the user invokes the different microservices using 3 different invocation patterns:
- the browser is the client - and interacts directly with the vert.x event bus to invoke the other services
- the browser uses an API gateway using REST - and the frontend (server) invokes the services in parallel, and sends the aggregted results to the browser.
- the browser calls
hello
, callingola
... - the browser uses the event bus to invoke the first service of the chain. It gets the results as a reply.
The detailed instructions to run the Red Hat Reactive MSA demo, can be found at the following repository: https://github.com/redhat-reactive-msa/redhat-reactive-msa
Open a command prompt and navigate to the root directory of this microservice. Then to package this microservice run:
mvn clean package
Type this command to execute the application:
java -jar target/frontend-0.0.1-SNAPSHOT-fat.jar -cluster
The UI is available on http://localhost:8080
.
Refer to https://github.com/redhat-reactive-msa/redhat-reactive-msa.