Category: .NET


  • We added health checks to a .NET app so we can quickly verify whether the API is running and whether it can reach its PostgreSQL database. The final result is a /health endpoint that returns structured JSON. First, we added the health check packages to the project: AspNetCore.HealthChecks.NpgSql gives us a PostgreSQL-specific health check. AspNetCore.HealthChecks.UI.Client…