According to the newest MicroProfile specifications, health checks are now to be used with a more specific model to help us determine the cause of potential issues. Therefore, it's recommended you migrate the legacy @HealthCheck to one of the following checks:
- Readiness checks: This check can indicate that a service is temporarily unable to serve traffic. This can be due to, for example, the fact that an application may be loading some configuration or data. In such cases, you don't want to shut down the application but, at the same time, you don't want to send it requests either. Readiness checks are supposed to cover this scenario.
- Liveness checks: Services running 24/7 can sometimes undergo a transition ...