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

Offered By: IBM

Checking the health of Java microservices by using Eclipse MicroProfile Health Check

Explore how to report and check the health of a microservice with MicroProfile Health.

Continue reading

Guided Project

Open Liberty

4.5
(4 Reviews)

At a Glance

Explore how to report and check the health of a microservice with MicroProfile Health.

You will learn how to use MicroProfile Health to report the health status of microservices and take appropriate actions based on this report.
MicroProfile Health allows services to report their health, and it publishes the overall health status to a defined endpoint. A service reports UP if it is available and reports DOWN if it is unavailable. MicroProfile Health reports an individual service status at the endpoint and indicates the overall status as UP if all the services are UP. A service orchestrator can then use the health statuses to make decisions.

A service checks its own health by performing necessary self-checks and then reports its overall status by implementing the API provided by MicroProfile Health. A self-check can be a check on anything that the service needs, such as a dependency, a successful connection to an endpoint, a system property, a database connection, or the availability of required resources. MicroProfile offers checks for both liveness and readiness.

You will add liveness and readiness checks to the system and inventory services, which are provided for you, and implement what is necessary to report health status by using MicroProfile Health.

Created by 

The Open Liberty Project team

Estimated Effort

20 Minutes

Level

Intermediate

Skills You Will Learn

Java

Language

English

Course Code

GPXX0QTEEN

Tell Your Friends!

Saved this page to your clipboard!

Sign up to our newsletter

Stay connected with the latest industry news and knowledge!