loading…
The CRM sometimes takes 15 seconds. Agent requests hang, workers accumulate, and users retry from the browser.
crm = FakeCRM(latency_ms=15000)
Set a timeout based on the caller’s total deadline, not on patience. Retry only transient failures, bound the attempt count, add exponential backoff with jitter, and preserve time for fallback or escalation.
deadline → attempt → timeout → bounded backoff → fallback
Do not retry invalid requests, permission errors, or unsafe side effects. Thousands of synchronized retries turn one dependency outage into a retry storm.
In Kintsu Agent, inject CRM latency and implement a request deadline, bounded retry, jittered backoff, and a customer-safe fallback. Record total latency and attempt count.
The test is not “eventually returns.” Verify that the request stops within its deadline, does not retry non-retryable errors, and degrades predictably when the CRM stays down.