Another essential feature that's always present in web services is the health checking process for dependencies. In general, the health check processes are used by the CI/CD pipeline to check whether a service is healthy after its deployment or to perform the feature check-in a monitoring dashboard. Health checks are usually performed by calling HTTP routes to detect whether there are any ongoing issues in the web service.
Note that these services expose the health check routes. The monitoring of these health checks is implemented in an independent and separate application. Furthermore, this practice allows us to keep the services independent from the monitoring logic.
ASP.NET Core provides some out-of-the-box implementations to help developers add health check processes to their services. These features are implemented using a middleware-oriented...