Interview › Istio & Service Mesh
What are retries in Istio, and what are the risks of misconfiguring them?
Istio & Service Mesh · Basic level
Answer
Retries let Envoy automatically retry failed requests under configured conditions. They can improve resilience for transient failures, but misconfigured retries can amplify load, duplicate non-idempotent operations, and create retry storms during incidents.
Technical explanation
Retries are safer for idempotent GET or read operations than for payment, order creation, or side-effecting writes.
Retry attempts must be bounded by timeout budgets and downstream capacity.
Retry policies should specify retryOn conditions, attempts, perTryTimeout, and overall route timeout.
Hands-on example
Safe-ish retry example for a read API:
retries:
attempts: 2
perTryTimeout: 300ms
retryOn: gateway-error,connect-failure,refused-stream
timeout: 1s
Do not blindly apply this to POST /charge. For writes, prefer idempotency keys and explicit application-level retry design.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- How do you inject delays or aborts to test resilience with Istio?
- What are timeouts in Istio, and how do they interact with retries?
- What is fault injection in Istio, and why would you use it?
- How does Istio do request routing based on headers or paths?
- What is outlier detection, and how does it eject unhealthy hosts?
- What are subsets in a DestinationRule, and how are they used?
- What is mutual TLS (mTLS), and how does Istio provide it automatically?
- How do you implement a blue-green deployment using Istio?