Introduction
When an ASP.NET Core application starts successfully, it does not necessarily mean that the application is ready to handle user requests. The application process may be running, but its database might be unavailable, Redis might have stopped responding, or an external service required to complete business operations might be experiencing an outage.
These situations are common in distributed applications. An API can start normally even when one of its important dependencies is unavailable. If the application does not check these dependencies, it may continue accepting requests that it cannot process successfully.
For example, consider an e-commerce application that uses PostgreSQL to store orders and Redis to cache product information. The API may be running and responding to HTTP requests, but if PostgreSQL is unavailable, customers cannot place orders. Similarly, if Redis is unavailable, some operations may become slower or fail depending on how the application uses the cache.
This is where health checks become important.
ASP.NET Core provides a built-in health check system that allows an application to report whether it is functioning correctly. Developers can create health checks for databases, caches, external APIs, message brokers, and other services that the application depends on.
However, simply adding a health check endpoint does not automatically verify every dependency. Developers must register checks that actually connect to those services and confirm that they are responding correctly.
In this article, we will build a practical health check implementation for an ASP.NET Core API. We will check the application itself, PostgreSQL, and Redis. We will also create separate liveness and readiness endpoints, handle dependency failures, configure timeouts, and understand how health checks can help deployment platforms monitor applications.
Understanding Health Checks in ASP.NET Core
A health check is a small operation that verifies whether a particular part of an application is working as expected.
For example, a database health check can open a database connection and execute a simple SQL query. If the connection succeeds and the query completes, the database is considered healthy from the application's perspective. If the connection fails or the query times out, the health check reports an unhealthy result.
ASP.NET Core provides the Microsoft.Extensions.Diagnostics.HealthChecks functionality for registering and executing health checks.
The health check system consists of three important parts:
Health check registration: Developers register the checks that the application needs to execute.
Health check implementation: Each check performs a specific operation to verify a dependency or application component.
Health check endpoint: The application exposes an HTTP endpoint that allows monitoring systems to retrieve the health status.
These parts work together, but they have different responsibilities.
Registering a health check tells ASP.NET Core which checks should run. Implementing a health check defines what should actually be tested. Exposing an endpoint makes the result available to other systems.
For example, registering a health check named database does not automatically test PostgreSQL. The registered implementation must attempt a real database operation before it can report whether PostgreSQL is available.
This distinction is important because an endpoint that always returns HTTP 200 does not provide meaningful information about the application's actual dependencies.
Understanding Liveness and Readiness Checks
Before implementing health checks, it is important to understand the difference between liveness and readiness.
Both checks are useful, but they answer different questions.
Liveness Check
A liveness check answers the question: Is the application process still functioning?
It helps determine whether an application instance is running and whether it should continue to be kept alive.
For example, an ASP.NET Core application might still be running even if a background component has stopped responding or the application has entered an unrecoverable state.
A liveness check should generally focus on the application itself rather than checking every external dependency.
Consider what happens when PostgreSQL becomes temporarily unavailable. If the liveness endpoint also checks PostgreSQL, the application may report itself as unhealthy even though its process is functioning correctly.
A container orchestrator could then restart the application. If PostgreSQL is still unavailable, the restarted application may fail the same check again. This can create unnecessary restarts without solving the actual problem.
For this reason, liveness checks should usually be lightweight and should not depend on external services.
Readiness Check
A readiness check answers a different question: Is the application ready to receive requests?
An application can be alive but not ready.
For example, an API might have started successfully, but its database connection may not be available yet. If the API needs PostgreSQL to process most requests, it should not receive normal traffic until PostgreSQL is accessible.
A readiness check can verify the important dependencies required by the application.
For an e-commerce API, readiness might depend on:
PostgreSQL being available.
Redis being available if the application requires it to serve requests.
Required configuration being loaded.
Important initialization tasks being completed.
The exact dependencies depend on the application's design. If Redis is only an optional cache and the application can continue working without it, Redis may not need to make the entire API unready.
The goal is to report whether the application can perform its expected work, not simply whether every connected service is running.
Liveness vs. Readiness
Area | Liveness | Readiness |
|---|
Main purpose | Check whether the application is functioning | Check whether the application can handle requests |
External dependencies | Usually not checked | Important dependencies are checked |
Database connection | Generally excluded | Usually included when required |
Application startup | Checks whether the process is alive | Checks whether initialization is complete |
Common use | Restart decisions | Traffic routing decisions |
Typical failure response | Application may need recovery or restart | Application should temporarily stop receiving traffic |
Keeping these checks separate prevents dependency failures from automatically being treated as application process failures.
Step 1. Create an ASP.NET Core Web API Project
Let's create a new ASP.NET Core Web API project.
Open a terminal and execute:
dotnet new webapi -n HealthCheckDemo
Navigate to the project directory:
cd HealthCheckDemo
The project will contain the basic configuration required to run an ASP.NET Core API.
For this example, we will use PostgreSQL and Redis as external dependencies. The API will expose health endpoints that check whether these services are actually available.
You can use an existing ASP.NET Core application as well. The same health check concepts apply regardless of whether the application uses controllers, minimal APIs, Entity Framework Core, or another data access approach.
Step 2. Add the Required Packages
ASP.NET Core includes the core health check infrastructure. We do not need a separate package just to register health checks or expose health endpoints.
However, the application needs database and Redis client libraries to communicate with the dependencies.
Install the following packages:
dotnet add package Npgsql
dotnet add package StackExchange.Redis
Npgsql is the .NET data provider used to communicate with PostgreSQL. It allows the application to open database connections and execute SQL commands.
StackExchange.Redis is a Redis client library that allows the application to connect to a Redis server and execute Redis operations.
We will use these libraries directly inside custom health check implementations. This gives us control over exactly what each health check verifies.
For larger applications, additional health check packages are available for commonly used services. However, a custom implementation is useful when the application needs a specific connectivity test or when the available package does not match its requirements.
Step 3. Configure the Database and Redis Connections
Before creating the health checks, we need to configure the application to connect to PostgreSQL and Redis.
Open appsettings.json and add the following configuration:
{
"ConnectionStrings": {
"PostgreSQL": "Host=localhost;Port=5432;Database=healthdb;Username=appuser;Password=your_password",
"Redis": "localhost:6379"
}
}
These connection strings describe where the application can find the two dependencies.
The PostgreSQL connection string contains the database host, port, database name, username, and password. The Redis connection string identifies the Redis server and its port.
For local development, localhost may be correct when the database and Redis are running directly on the development machine or when their container ports are published to the host.
However, when the API itself runs inside a Docker container, localhost refers to that API container, not the developer's machine or another container. In a container-based environment, use the appropriate service hostname or connection configuration supplied by the orchestration platform.
Also, avoid storing production passwords directly in appsettings.json. Use environment variables, a secure secret store, or the configuration mechanism provided by your hosting platform.
Step 4. Register the Application Dependencies
Open Program.cs and configure the database and Redis clients.
using Npgsql;
using StackExchange.Redis;
var builder = WebApplication.CreateBuilder(args);
var postgresConnectionString =
builder.Configuration.GetConnectionString("PostgreSQL")
?? throw new InvalidOperationException(
"PostgreSQL connection string is missing.");
var redisConnectionString =
builder.Configuration.GetConnectionString("Redis")
?? throw new InvalidOperationException(
"Redis connection string is missing.");
builder.Services.AddSingleton(
NpgsqlDataSource.Create(postgresConnectionString));
builder.Services.AddSingleton<IConnectionMultiplexer>(
_ => ConnectionMultiplexer.Connect(redisConnectionString));
var app = builder.Build();
app.MapGet("/", () => "Health Check Demo API is running.");
app.Run();
Let's understand why these dependencies are registered this way.
NpgsqlDataSource is registered as a singleton because it is designed to be reused by the application. It manages database connection pooling and provides connections when database operations are needed.
The application does not need to create a completely new data source every time a health check runs. Reusing the same data source avoids unnecessary setup and allows the underlying connection pool to work efficiently.
The Redis ConnectionMultiplexer is also registered as a singleton. It is designed to manage Redis connections and should normally be reused instead of creating a new multiplexer for every request.
The connection multiplexer can reconnect when Redis connectivity changes, but the health check should still verify whether Redis is currently reachable.
At this point, the application has the client objects required to communicate with both dependencies. We have not yet registered any health checks.
Step 5. Create a PostgreSQL Health Check
Now we will create a custom health check that verifies the PostgreSQL database.
Create a folder named HealthChecks and add a class named DatabaseHealthCheck.cs.
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Npgsql;
public class DatabaseHealthCheck : IHealthCheck
{
private readonly NpgsqlDataSource _dataSource;
public DatabaseHealthCheck(
NpgsqlDataSource dataSource)
{
_dataSource = dataSource;
}
public async Task<HealthCheckResult> CheckHealthAsync(
HealthCheckContext context,
CancellationToken cancellationToken = default)
{
try
{
await using var connection =
await _dataSource.OpenConnectionAsync(
cancellationToken);
await using var command = connection.CreateCommand();
command.CommandText = "SELECT 1";
await command.ExecuteScalarAsync(
cancellationToken);
return HealthCheckResult.Healthy(
"PostgreSQL is available.");
}
catch (OperationCanceledException)
when (cancellationToken.IsCancellationRequested)
{
throw;
}
catch (Exception ex)
{
return HealthCheckResult.Unhealthy(
"Unable to connect to PostgreSQL.",
ex);
}
}
}
This class implements the IHealthCheck interface provided by ASP.NET Core.
The interface requires the CheckHealthAsync method. ASP.NET Core calls this method whenever the registered health check needs to run.
The constructor receives NpgsqlDataSource through dependency injection. This is the same data source that we registered in Program.cs.
Inside CheckHealthAsync, the implementation attempts to open a database connection. If PostgreSQL is available and the connection can be established, the application executes a simple SQL statement:
SELECT 1;
This statement is intentionally simple. It does not read or modify application data. Its purpose is to verify that the database can accept a connection and execute a query.
If the connection and query succeed, the method returns HealthCheckResult.Healthy.
If PostgreSQL is unavailable, authentication fails, or another database operation throws an exception, the method returns HealthCheckResult.Unhealthy.
Notice that the cancellation exception is handled separately. ASP.NET Core may cancel a health check because its configured timeout has expired or because the request has been cancelled. We should not hide that cancellation by reporting it as an ordinary database failure.
This check verifies actual database connectivity rather than simply checking whether the application has a connection string configured.
Step 6. Create a Redis Health Check
Now we will create a similar health check for Redis.
Create RedisHealthCheck.cs inside the HealthChecks folder.
using Microsoft.Extensions.Diagnostics.HealthChecks;
using StackExchange.Redis;
public class RedisHealthCheck : IHealthCheck
{
private readonly IConnectionMultiplexer _redis;
public RedisHealthCheck(
IConnectionMultiplexer redis)
{
_redis = redis;
}
public async Task<HealthCheckResult> CheckHealthAsync(
HealthCheckContext context,
CancellationToken cancellationToken = default)
{
try
{
var database = _redis.GetDatabase();
await database.PingAsync()
.WaitAsync(cancellationToken);
return HealthCheckResult.Healthy(
"Redis is available.");
}
catch (OperationCanceledException)
when (cancellationToken.IsCancellationRequested)
{
throw;
}
catch (Exception ex)
{
return HealthCheckResult.Unhealthy(
"Unable to connect to Redis.",
ex);
}
}
}
This health check uses the Redis connection multiplexer registered earlier.
The GetDatabase method provides an interface for executing Redis operations. The PingAsync method sends a ping operation to Redis and measures the response time.
If Redis responds successfully, the health check returns a healthy result.
If the Redis server is unavailable or the operation fails, the check returns an unhealthy result.
We also use WaitAsync with the cancellation token so the health check can stop waiting when its execution is cancelled.
A Redis connection multiplexer may maintain connections and attempt reconnection automatically. However, that does not mean Redis is currently ready to process application operations. A real ping provides a more meaningful availability check.
One important design decision is whether Redis should be mandatory for application readiness. If the API can continue serving requests without the cache, Redis failure may need to be reported separately rather than making the entire API unready.
Step 7. Register the Health Checks
Now that both health check classes are available, we need to register them with ASP.NET Core.
Update Program.cs:
builder.Services
.AddHealthChecks()
.AddCheck<DatabaseHealthCheck>(
"postgresql",
tags: new[] { "ready" },
timeout: TimeSpan.FromSeconds(3))
.AddCheck<RedisHealthCheck>(
"redis",
tags: new[] { "ready" },
timeout: TimeSpan.FromSeconds(3))
.AddCheck(
"self",
() => HealthCheckResult.Healthy(
"Application is running."),
tags: new[] { "live" });
This configuration registers three health checks.
The first check verifies PostgreSQL. It receives the ready tag, which means we can include it when calculating the readiness status.
The second check verifies Redis. It also receives the ready tag.
The third check is a simple application-level check. It does not contact an external service. It returns a healthy result when the health check system can execute it.
The self check receives the live tag because it is used by the liveness endpoint.
The timeout configuration is also important. It limits how long ASP.NET Core waits for an individual health check to complete. A database that takes too long to respond should not cause the entire health endpoint to wait indefinitely.
A timeout does not make an unavailable dependency healthy. It limits the time spent waiting for the result.
It is also worth remembering that a timeout configured for a health check is different from an HTTP request timeout or a database command timeout. Those settings control different parts of the operation and may need separate configuration.
Step 8. Create Separate Liveness and Readiness Endpoints
Now we need to expose the registered checks through HTTP endpoints.
Add the following code before app.Run():
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
app.MapHealthChecks(
"/health/live",
new HealthCheckOptions
{
Predicate = check =>
check.Tags.Contains("live")
});
app.MapHealthChecks(
"/health/ready",
new HealthCheckOptions
{
Predicate = check =>
check.Tags.Contains("ready")
});
The MapHealthChecks method adds an HTTP endpoint that executes the registered health checks and returns an HTTP status based on their results.
The first endpoint is /health/live.
Its Predicate selects only health checks that contain the live tag. In our example, this means it executes the self check without contacting PostgreSQL or Redis.
The second endpoint is /health/ready.
Its Predicate selects health checks with the ready tag. This means it executes the PostgreSQL and Redis checks.
The default health check response uses HTTP 200 when the selected checks are healthy and HTTP 503 when at least one selected check is unhealthy.
This behavior is useful because monitoring systems and load balancers can use the HTTP status to decide whether an application instance should receive traffic.
For example, if PostgreSQL becomes unavailable, /health/live can continue returning HTTP 200 because the API process is still running. However, /health/ready returns HTTP 503 because the API cannot access a required dependency.
This is exactly why separate liveness and readiness endpoints are useful.
Step 9. Return Detailed Health Check Results
The default health check response is useful for simple monitoring, but it does not provide a detailed JSON report.
During development and internal monitoring, it can be helpful to see which dependency is healthy and which one is failing.
We can configure a response writer using HealthCheckOptions.
Add the following method in Program.cs or move it into a separate helper class:
using System.Text.Json;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
static Task WriteHealthCheckResponse(
HttpContext context,
HealthReport report)
{
context.Response.ContentType = "application/json";
var response = new
{
Status = report.Status.ToString(),
Duration = report.TotalDuration.TotalMilliseconds,
Checks = report.Entries.Select(entry => new
{
Name = entry.Key,
Status = entry.Value.Status.ToString(),
Description = entry.Value.Description,
Duration = entry.Value.Duration.TotalMilliseconds
})
};
return context.Response.WriteAsync(
JsonSerializer.Serialize(response));
}
This method receives the complete HealthReport generated by the health check system.
The report contains the overall health status, the total execution duration, and the individual results of registered checks.
The method converts this information into a JSON response.
For example, when all dependencies are available, the response may look like this:
{
"status": "Healthy",
"duration": 25.4,
"checks": [
{
"name": "postgresql",
"status": "Healthy",
"description": "PostgreSQL is available.",
"duration": 12.2
},
{
"name": "redis",
"status": "Healthy",
"description": "Redis is available.",
"duration": 8.1
}
]
}
The actual durations will depend on the environment and the response time of each dependency.
Now configure the response writer on the readiness endpoint:
app.MapHealthChecks(
"/health/ready",
new HealthCheckOptions
{
Predicate = check =>
check.Tags.Contains("ready"),
ResponseWriter = WriteHealthCheckResponse
});
The response writer can also be used for the liveness endpoint if a detailed response is useful.
Be careful about exposing detailed health information publicly. Health reports may reveal internal service names, dependency status, or infrastructure details. In production, consider limiting access to these endpoints or returning only the information required by your monitoring platform.
Step 10. Test the Health Check Endpoints
Now run the application:
dotnet run
Open the following endpoints in a browser or send HTTP requests using a tool such as Postman or curl.
GET /health/live
GET /health/ready
When the application and its dependencies are available, both endpoints should return HTTP 200.
The liveness endpoint confirms that the application-level health check is working.
The readiness endpoint confirms that PostgreSQL and Redis are responding to their health checks.
Now stop PostgreSQL while keeping the API running.
Send another request to:
GET /health/live
The liveness endpoint should still return HTTP 200 because it does not check PostgreSQL.
Next, call:
GET /health/ready
The readiness endpoint should return HTTP 503 because the PostgreSQL health check cannot establish a connection.
This test demonstrates why health checks should represent the actual responsibility of each endpoint.
It also helps verify that the application is not reporting itself as ready when an essential dependency is unavailable.
After restarting PostgreSQL, call the readiness endpoint again. Once the database connection succeeds and all selected checks are healthy, the endpoint should return HTTP 200.
Step 11. Use Health Checks With Deployment Platforms
Health checks become especially valuable when an application runs inside containers or a managed hosting environment.
A deployment platform can periodically call the application's health endpoints and use the results to make decisions.
For example, a Kubernetes deployment can use different probes for liveness and readiness.
A simplified configuration looks like this:
livenessProbe:
httpGet:
path: /health/live
port: 8080
initialDelaySeconds: 10
periodSeconds: 15
readinessProbe:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
The liveness probe checks whether the application should continue running. If it repeatedly fails, Kubernetes can restart the container.
The readiness probe checks whether the application should receive traffic. If it fails, Kubernetes can remove the instance from the set of ready endpoints without necessarily restarting the container.
This distinction is important.
Suppose PostgreSQL experiences a temporary outage. The API may still be running, but it cannot process requests that require database access. The readiness probe can report the problem so the platform stops routing normal traffic to that instance.
The liveness probe should not automatically fail just because PostgreSQL is temporarily unavailable. Restarting every API instance will not fix a database outage and may make recovery more difficult.
The same principle applies to other hosting platforms. Use the health check mechanism supported by the platform and configure it according to the meaning of the endpoint.
Step 12. Avoid Making Health Checks Too Expensive
Health checks should provide useful information without creating unnecessary load on the application or its dependencies.
Imagine an application that receives thousands of requests per second and has a monitoring system calling its readiness endpoint every second. If every health check executes several expensive database queries, the monitoring system can create additional database load.
For this reason, health checks should generally perform small and predictable operations.
A simple SELECT 1 query is usually sufficient to verify that PostgreSQL accepts connections and executes basic SQL commands. There is no need to retrieve thousands of application records just to determine database availability.
Similarly, a Redis ping is generally more appropriate than scanning large key collections or running expensive cache operations.
Also consider the number of application instances. If ten API instances execute several dependency checks every second, the combined number of health check operations can become significant.
Set suitable monitoring intervals, use reasonable timeouts, and keep the checks lightweight.
Health checks should measure availability, not become another source of performance problems.
Handling Common Health Check Problems
Problem | Possible Reason | Recommended Solution |
|---|
Liveness returns HTTP 503 | The application-level check is failing or the endpoint is configured incorrectly | Review the liveness check registration and endpoint predicate |
Readiness returns HTTP 503 | One or more required dependencies are unavailable | Inspect the individual health check results |
Database health check times out | PostgreSQL is slow, unreachable, or connection capacity is exhausted | Check database availability, connection pooling, and timeout settings |
Redis health check fails | Redis is unavailable or the connection cannot be established | Verify Redis connectivity and connection configuration |
Health endpoint always returns HTTP 200 | No real dependency checks have been registered, or the endpoint selects the wrong checks | Verify the registered checks and their tags |
Application restarts repeatedly | Liveness is checking an external dependency that is temporarily unavailable | Keep dependency checks in readiness unless the application truly requires them for liveness |
Health checks increase database load | Checks run too frequently or execute expensive queries | Reduce check frequency and use lightweight operations |
Health endpoint exposes internal details | Detailed response information is publicly accessible | Restrict access or return a limited response |
When troubleshooting, first determine which endpoint is failing. A liveness failure and a readiness failure have different meanings and should not be treated as the same problem.
Next, inspect the individual health check results. This helps identify whether the problem is related to PostgreSQL, Redis, application startup, or another dependency.
Best Practices for Production Applications
Check Actual Dependencies
A useful health check should perform an operation that proves the dependency is available.
For a database, this generally means opening a connection and executing a lightweight query. For Redis, it can mean sending a ping. For an external HTTP service, it may involve calling a dedicated health endpoint or performing a small operation that verifies the required capability.
Simply checking whether a connection string exists does not prove that the service is reachable. Similarly, checking whether a client object was successfully registered does not prove that the remote service is available.
The health check should test the dependency at the level that matters to the application.
Keep Liveness Independent of External Services
Avoid making liveness dependent on every database, cache, message broker, or external API.
A temporary dependency outage should not automatically cause the application process to restart.
Use liveness to identify problems with the application itself and readiness to determine whether the application can handle normal requests.
This reduces unnecessary restarts and makes recovery easier to manage.
Decide Which Dependencies Are Required
Not every dependency needs to make the entire application unready.
For example, if Redis is only used to cache product information and the API can retrieve the same information from PostgreSQL, Redis may be an optional dependency.
In that situation, the application might continue serving requests when Redis is unavailable, although performance may be affected.
On the other hand, if the application requires a message broker to accept and safely queue certain operations, that dependency may be essential for readiness.
Make this decision based on the application's actual behavior rather than adding every registered service to the readiness check automatically.
Configure Reasonable Timeouts
A health check should not wait indefinitely for a database or external service.
Set timeouts based on the expected response time of each dependency and the monitoring platform's requirements.
However, avoid choosing extremely short timeouts that cause healthy services to appear unavailable during normal network delays.
Also remember that health check timeouts do not replace the connection and command timeout settings of the underlying client libraries.
Protect Health Check Endpoints
Health endpoints can expose information about application dependencies and infrastructure.
A public endpoint that returns detailed database and Redis status may reveal information that should remain internal.
Expose only the information required by the monitoring system. If detailed diagnostic information is needed, restrict access through network rules, authentication, or the hosting platform's monitoring configuration.
Monitor Dependency Failures Over Time
A single failed health check does not always indicate a long-term problem.
A database may experience a brief network interruption and recover immediately. Monitoring systems should consider repeated failures and recovery behavior rather than making major decisions based on one isolated result.
Use logs, metrics, and tracing alongside health checks to understand the frequency, duration, and impact of dependency failures.
Health checks indicate current availability. They do not replace application monitoring or detailed performance diagnostics.
Advantages and Limitations of ASP.NET Core Health Checks
Advantages
ASP.NET Core health checks provide a standard way to report application and dependency availability. Developers can implement custom checks for almost any service that exposes a client library or a connectivity operation.
Separate liveness and readiness endpoints make it easier to integrate applications with containers, Kubernetes, load balancers, and monitoring systems.
Health checks also help developers identify dependency failures during local development and testing. Instead of waiting for a real user request to fail, developers can inspect the readiness endpoint and identify which service is unavailable.
Limitations
Health checks provide a limited view of application health. A successful database query does not prove that every database operation will succeed, and a successful Redis ping does not guarantee that every cache operation will work correctly.
Health checks also cannot replace integration tests, performance monitoring, logging, or distributed tracing.
Another limitation is that health checks can create additional traffic against dependencies. If they run too frequently or perform expensive operations, they can affect the same services they are intended to monitor.
The best results come from using lightweight checks that verify important capabilities without trying to test the entire application.
Summary
Health checks are an important part of building reliable ASP.NET Core applications. An application process can be running while its database, cache, or another required dependency is unavailable. Without proper health checks, monitoring systems may incorrectly assume that the application is ready to handle requests.
In this article, we created custom health checks for PostgreSQL and Redis using the Npgsql and StackExchange.Redis libraries. We registered these checks with ASP.NET Core, created separate liveness and readiness endpoints, and configured detailed health check responses.
We also explored how deployment platforms can use these endpoints to decide whether an application should continue running or receive traffic.
The most important design decision is to keep liveness and readiness separate. Liveness should generally indicate whether the application itself is functioning, while readiness should verify whether the application can perform its expected work using the dependencies it actually requires.
When health checks are lightweight, accurate, and configured with appropriate timeouts, they become a useful part of application monitoring and help teams identify problems before they affect more users.
Join the conversation! Your thoughts help the community grow.