Interview Prep/Networking/Load Balancers, Proxies & CDNs

What are health checks and how should they be designed?

AdvancedConceptLoad Balancers, Proxies & CDNs
Answer

The balancer probes each target periodically (TCP connect, HTTP GET, gRPC) and removes it after N failures, adding it back after M successes. Tune interval, timeout, thresholds and path.

Design /health to check that the process can serve traffic (and critical dependencies cautiously) but not to cascade: if the endpoint checks a shared database, a DB blip marks every instance unhealthy and takes the whole service down. Separate liveness from readiness.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancers, Proxies & CDNs