LLevelUp
0
← Back to topic

Health Checks

Health checks tell infrastructure whether an app should receive traffic. A liveness check says the process is alive. A readiness check says the app can serve requests.

app.get("/health", (_req, res) => {
  res.json({ ok: true });
});

WARNING

A health check that always returns OK can hide broken dependencies. A health check that checks too much can create false outages.

Further Learning

  • “liveness readiness health checks” — health check types
  • “Kubernetes readiness probe” — common model
  • “HTTP health endpoint design” — practical endpoint design