How do you set up health checks for a service that depends on slow downstream systems?
IntermediateProductionLoad Balancing, Proxies & nginx in Production
Answer
Use a shallow endpoint for LB health checks (process up, can accept requests) and a separate deep readiness check for dependencies. Return 200 for degraded-but-serving. Cache dependency check results for a few seconds so checks do not hammer them.
A deep check wired into the LB can mark the entire fleet unhealthy during a dependency blip, converting a partial failure into a full outage.
More on Load Balancing, Proxies & nginx in Production
How do you choose between ALB, NLB and an nginx or Envoy fleet?IntermediateHow do you tune ALB idle timeout and backend keep-alive to avoid 502s?IntermediateWhich nginx directives matter most for a production reverse proxy?IntermediateHow do you do rate limiting and abuse protection in nginx?IntermediateHow do you achieve zero-downtime configuration reloads in nginx and HAProxy?IntermediateHow would you design a highly available load-balancing tier on-prem or in a colo?Advanced