Skip to content

Lesson 2 of 8 · 3 min read

Side Effects That Survive Retries

Durable runs retry activities, and a retried side effect can happen twice. When the target system supports idempotency keys, use them. When it does not, the agent needs a protocol: write an intent record before acting, embed a unique reference in the request so the effect can be found later, treat a timeout as an unknown outcome to be resolved by lookup rather than by retrying, and reconcile periodically against the system of record. The outbox pattern keeps intent and action consistent, and anything the system cannot resolve goes to a person.

Reviewed By the AIAgentInterviews editorial team
free sign-in, no card required

Practise it as an interviewer asks it

Course lessons that teach this

Related lessons