Interview Prep/Networking/Load Balancing, Proxies & nginx in Production

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.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production