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.
More on Load Balancers, Proxies & CDNs
What is a load balancer and why do we use one?BeginnerWhat is the difference between L4 and L7 load balancing?IntermediateCompare ALB, NLB, GWLB and Classic Load Balancer in AWS.IntermediateWhat load-balancing algorithms are common?BeginnerWhat is connection draining (deregistration delay)?IntermediateWhat are sticky sessions and what are the drawbacks?Intermediate