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

Offered By: IBM

Acknowledging messages using MicroProfile Reactive Messaging

Learn how to acknowledge messages by using MicroProfile Reactive Messaging.

Continue reading

Guided Project

Open Liberty

0.0
(0 Reviews)

At a Glance

Learn how to acknowledge messages by using MicroProfile Reactive Messaging.

MicroProfile Reactive Messaging provides a reliable way to handle messages in reactive applications. MicroProfile Reactive Messaging ensures that messages aren’t lost by requiring that messages that were delivered to the target server are acknowledged after they are processed. Every message that gets sent out must be acknowledged. This way, any messages that were delivered to the target service but not processed, for example, due to a system failure, can be identified and sent again.

The application in this guide consists of two microservices, system and inventory. 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. You can get the current inventory of systems by accessing the /systems REST endpoint.

You will explore the acknowledgment strategies that are available with MicroProfile Reactive Messaging, and you’ll implement your own manual acknowledgment strategy. To learn more about how the reactive Java services 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

Language

English

Course Code

GPXX05P1EN

Tell Your Friends!

Saved this page to your clipboard!

Sign up to our newsletter

Stay connected with the latest industry news and knowledge!