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

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;
All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & nginx in Production