MicroProfile Health
Health is a wonderful thing – not just for us humans, but also for our microservices. Once you have deployed your microservices, you want to check their temperature occasionally. Enter the Microprofile Health specification, which allows you to validate the health of your services at regular intervals.
It should be noted that, although this specification exposes an API, it is not meant for human consumption, but more for machine-to-machine. Think of a container management system such as Kubernetes that wants to inquire about the status of certain pods to determine if they are still functioning as expected.
Three sorts of health checks can be performed, as described in the following table:
Type |
Annotation |
Usage |
Readiness |
|
Determines if the application is ready to process... |