Check application health

15676034:

The deployment scenarios of modern applications and services are mainly reflected in clustering, microservices and containerization, all of which are based on health checks for deployed applications or services. The health check provided by ASP.NET not only may determine the availability of the target application or service, but also has the function of issuing health reports. The health check function of the ASP.NET framework is completed through the HealthCheckMiddleware middleware. We can not only use this middleware to determine the availability of the current application, but also register the corresponding IHealthCheck object to complete health checks for different aspects. (The sample demonstration provided in this article has been synchronized to " ASP.NET Core 6 Framework Demystified - Example Demo Edition ")

[S3001] Determine application availability status ( source code )
[S3002] Customize health check logic ( source code )
[S3003] Change response status code corresponding to health status ( source code )
[S3004] Provide fine-grained health check ( source code )
[S3005] Customize health report response content

Guess you like

Origin blog.csdn.net/shengyin714959/article/details/131640908