In the cloud environment, it is essential to allow services to report, and eventually publish, the overall health status to a defined endpoint. This can be achieved through MicroProfile Health Check, which allows a service to report the overall status as "UP" if it is available and "DOWN" if it is unavailable. This information can be collected by a service orchestrator, which can then use the health reports to make decisions.
Let's put these concepts into practice with the Chapter06/health example. First off, in order to use the health extension, we have included the following dependency in the pom.xml file:
Once the preceding library is available, we can add an implementation...