What would you automate for timeouts and retries during a downstream slowdown, and what would you leave manual?
Answer
Before automating, begin by turning business demand and reliability expectations into a representative workload and measurable hypothesis. Focus on timeouts and retries during a downstream slowdown. Use service-level objectives, resource telemetry and correctness under load as the oracle. Cover steady, spike, stress, soak, degradation and recovery behavior. Keep data and dependencies controlled enough to reproduce failures. Release only when thresholds are met without hidden errors, data loss or unsafe retry amplification.
Strong answer includes
- explicit risk and test oracle for timeouts and retries
- models realistic workload
- correlates latency with resources and correctness
- measurable evidence and residual-risk statement
Practical example
The team automated a chaos test that injects 3-second latency into a mocked downstream pricing service and asserts the caller's circuit breaker trips within the configured threshold and retries stay bounded, running it on every pipeline build. They deliberately kept exploratory testing of the real third-party pricing vendor's actual failure behavior manual, since that vendor's sandbox environment is unreliable and needs human judgment to interpret.