From the course: ASP.NET Core: Health Checks and Logging
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Add a health check to the sample app - ASP.NET Core Tutorial
From the course: ASP.NET Core: Health Checks and Logging
Challenge: Add a health check to the sample app
(upbeat music) - [Instructor] It's time for a coding challenge. So far, we have two health checks in our web application. First of all, we check whether the SQL server database is still there and then, you know, we have a random check which basically always returns healthy. But there is at least one thing we are not checking yet. We do not verify whether the API is available, whether the server the API runs on is there. And there are different approaches. You could write your own health check similar to the my random health check. And that health check then tries to call the API somehow. Or you could remember that for the SQL server health check we didn't write that much code, we were using a pre-existing package. So, maybe there's something similar. Both approaches are valid. And, in the solution, I will show you both.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Health checks explained1m 20s
-
(Locked)
Configuring health checks2m 33s
-
(Locked)
Adding health checks4m 31s
-
(Locked)
Adding database health checks7m 12s
-
(Locked)
Creating a UI8m 10s
-
(Locked)
Securing health check endpoints6m 42s
-
(Locked)
Challenge: Add a health check to the sample app1m 5s
-
(Locked)
Solution: Add a health check to the sample app7m 39s
-
(Locked)
Summary of health checks1m 28s
-
(Locked)