How do you design retries, timeouts and circuit breaking to avoid retry storms in a microservice mesh?
AdvancedProductionReliability & Rollouts
Answer
Set per-hop timeouts shorter than the caller's timeout, cap retries (1-2) with jittered backoff and a retry budget (for example 20% of requests), retry only idempotent calls and only on connect failure/5xx, and add circuit breakers or concurrency limits. Without budgets, retries multiply load by the call depth when a dependency degrades.
More on Reliability & Rollouts
What are the must-have settings for a production Deployment?BeginnerWhy use image digests or immutable tags instead of `latest`?BeginnerWhat does a PodDisruptionBudget protect and how do you size it?BeginnerHow do you set graceful shutdown right?BeginnerWhy do rollouts sometimes cause brief 502/503 errors?BeginnerHow many replicas should you run and how do you spread them?Beginner