Interview Prep/Docker/Architecture & Design Decisions

How do you design healthchecks for liveness vs readiness when not on Kubernetes?

IntermediateProductionArchitecture & Design Decisions
Answer

Docker has one healthcheck, so separate meaning in the endpoint: /livez (process alive, no dependency checks) for restarts by a watcher, and /readyz (dependencies OK) for the load balancer to route traffic. Do not make liveness depend on the database; a DB blip would restart every app instance and make the outage worse.

All Docker questions Roadmap: Docker & containers

More on Architecture & Design Decisions