What are health checks, and how do they support self-healing in an orchestrated microservices environment?

Last updated 3 July 2026

Health checks are endpoints (or probes) a service exposes so the orchestrator can programmatically ask whether it is alive and ready. They enable self-healing because the orchestrator acts on the results automatically: restarting wedged instances and routing traffic only to healthy ones, with no human intervention.

  • What they are:

    • Usually HTTP endpoints like /healthz and /ready that return a status code the platform polls periodically.

    • Kinds: liveness (is the process healthy?), readiness (can it serve now?), startup (has it finished booting?).

  • How they drive self-healing:

    • Failing liveness triggers an automatic restart of the container.

    • Failing readiness removes the instance from load-balancer endpoints until it recovers.

    • Combined with replica counts, the orchestrator reschedules and maintains desired healthy capacity.

  • Good practice: Keep liveness dependency-free; put dependency checks in readiness so a downstream outage doesn't cause restart storms.

  • https://www.freecodecamp.org/news/how-to-build-microservices-based-rest-apis-for-healthcare-portals/
  • https://dev.to/lizabethwordp/designing-a-self-healing-distributed-service-on-kubernetes-2eoh
  • https://dev.to/574n13y/docker-and-kubernetes-the-backbone-of-modern-application-development-part-3-docker-and-kubernetes-complement-each-other-945
All Microservices interview questions