According to the Eclipse MicroProfile Health Check specification, we have the following:
"...health checks are used to determine if a computing node needs to be discarded (terminated, shutdown) and eventually replaced by another (healthy) instance."
So, when you think about the increasing granularity of distributed services in a microservice architecture, you really need to have (or should consider having) a way for your monitoring and management tools to deal with the health state of each service.
Here, in this recipe, you will learn how to use the Eclipse MicroProfile Health Check to provide endpoints that will expose the health check of your microservice in two ways: liveness and readiness.