Alper Sarı

Laravel's /up Route Is a Liveness Check, Not Your Whole Readiness Strategy

Laravel 11 can register a health route such as /up from the application’s bootstrap configuration. It gives an orchestrator a simple way to ask whether the HTTP application can respond. That is useful, but one URL should not be expected to answer every operational question.

Separate three checks:

  1. Liveness: Is the process alive enough to continue? A failing liveness check may trigger a restart, so it should not fail merely because a downstream analytics service is temporarily slow.
  2. Readiness: Should this instance receive new traffic? Readiness can account for dependencies that are essential to serving the request path, while avoiding checks that create a load spike during an outage.
  3. Deployment verification: Did the new release start correctly, connect to the right database, and pass a small application-level smoke test?

An endpoint that synchronously probes every dependency can turn a partial outage into a restart loop. A cached readiness result, a bounded timeout, or a small number of critical checks can be safer than making each probe perform a fresh cascade of network calls. Decide what happens when a dependency is down: some routes may remain useful while others need to return a clear unavailable response.

Keep health endpoints free of secrets and internal topology. Return a status, not connection strings, hostnames, or exception messages. Restrict detailed diagnostics to authenticated observability systems. Test the probe behavior during a database timeout and a failed deploy; a healthy response in the happy path proves very little about recovery behavior.

The /up health route is part of the Laravel 11 release. The deployment guide shows how Laravel exposes it.