How do you prevent a thundering herd when many clients retry or reconnect at once?
AdvancedProductionLoad Balancing, Proxies & nginx in Production
Answer
Client-side exponential backoff with full jitter, server-side load shedding (return 503 quickly when saturated, queue limits), request coalescing at cache layers (nginx proxy_cache_lock), warm caches before cutover, and gradual traffic ramp.
proxy_cache_lock on;
proxy_cache_use_stale updating error timeout http_500 http_502 http_503;
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