In this blog post I want to point out that I just created a 15 min YouTube video related to the great Hands-on workshop: Reactive Endpoints with Quarkus on OpenShift. In this video you can watch and follow the steps of the exercise 3 “Invoke Endpoints reactively”. Niklas wrote a great blog post about the topic of that exercise. This is the name and link of his blog post Invoking REST APIs asynchronously with Quarkus.
Let me give you a short preview of the exercise 3 “Invoke Endpoints reactively”“.
In that exercise we will continue to implement our own My Web-API Microservice. The image below contains a simplified architecture overview of the sample Microservices application and points to a simplified class diagram of the six classes.
In exercise 4 we used the Java functionality CompletionStage and CompletableFuture for the asynchronous implementations of our the reactive endpoint. Now in exercise 5 we going to use the MicroProfile Rest Client specification to invoke the Articles Microservice from our My Web-API Microservice.
The following sequence diagram shows a simplified view of the invocations of methods and endpoints. The blue color marks the classes of our My Web-API Microservice. All and endpoints do return an CompletionStage.
- Invoke the REST Endpoint of the ArticlesResource class
- Invoke the method getArticlesReactive from the ArticleDataAccess class
- Invoke the method ArticlesService MicroProfile REST Client
- Invoke the REST Endpoint of the Articles Microservice
I hope this was useful for you and let’s see what’s next?
Greetings,
Thomas
PS: You can try out Cloud Foundry Apps or Kubernetes on IBM Cloud. By the way, you can use the IBM Cloud for free, if you simply create an IBM Lite account. Here you only need an e-mail address.
#IBMDeveloper, #IBMCloud, #OpenShift, #Java #reactive #CompletionStage #MicroProfile
Leave a Reply