April 2018
Intermediate to advanced
300 pages
7h 41m
English
Health checks are part of the proactive strategy, where the services' health can be monitored in a timely fashion. They also allow you to take actions proactively if any service is not responding or is in a failure state.
In ASP.NET Core, we can easily implement health checks by using the HealthChecks library, which is available as a NuGet package. To use HealthChecks, we can just simply add the following NuGet package to our ASP.NET Core MVC or Web API project:
Microsoft.AspNetCore.HealthChecks
We have to add this package to the application that monitors the services and the services whose health needs to be monitored.
Add the following code in the ConfigureServices method of the Startup class of the application ...