🚀 Master the language of AI with our brand new course: "Prompt Engineering for Everyone" Learn more

Offered By: IBM

Integrating RESTful services with a reactive system

Learn how to integrate RESTful Java microservices with a reactive system by using MicroProfile Reactive Messaging.

Continue reading

Guided Project

Open Liberty

50 Enrolled
0.0
(0 Reviews)

At a Glance

Learn how to integrate RESTful Java microservices with a reactive system by using MicroProfile Reactive Messaging.

You will learn how to integrate RESTful Java microservices with a reactive system by using MicroProfile Reactive Messaging. RESTful Java microservices don’t use reactive concepts, so you will learn how to bridge the gap between the two using the RxJava library. In this guide, you will modify two microservices in an application so that when a user hits the RESTful endpoint, the microservice generates producer events.
The application in this guide consists of two microservices, system and inventory. The following diagram illustrates the application: Every 15 seconds, the system microservice calculates and publishes events that contain its current average system load. The inventory microservice subscribes to that information so that it can keep an updated list of all the systems and their current system loads. The current inventory of systems can be accessed via the /systems REST endpoint.
You will update the inventory microservice to subscribe to a PUT request response. This PUT request response accepts a specific system property in the request body, queries that system property on the system microservice, and provides the response. You will also update the system microservice to handle receiving and sending events that are produced by the new endpoint. You will configure new channels to handle the events that are sent and received by the new endpoint. To learn more about how the reactive Java services that are used in this guide work, check out the Creating reactive Java microservices guide.

Created by 

The Open Liberty Project team

Estimated Effort

1 Hour

Level

Intermediate

Skills You Will Learn

Reactive architecture

Language

English

Course Code

GPXX0UMSEN

Released

August 25, 2021

Last Updated

September 22, 2021

Tell Your Friends!

Saved this page to your clipboard!

Sign up to our newsletter

Stay connected with the latest industry news and knowledge!