Invoke reactive Endpoints with Quarkus and MicroProfile

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.

reactive-exercise-5-architecture

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.

  1. Invoke the REST Endpoint of the ArticlesResource class
  2. Invoke the method getArticlesReactive from the ArticleDataAccess class
  3. Invoke the method ArticlesService MicroProfile REST Client
  4. Invoke the REST Endpoint of the Articles Microservice

reactive-exercise-5-sequencediagram


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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at WordPress.com.

Up ↑

%d bloggers like this: