Skip to main content

Context

Refund claims need asynchronous scanning, extraction, assessment, a reviewer wait, timeout handling, payment retries, and webhook updates.

Decision

Use Azure Durable Functions to own long-running workflow state, retries, timers, and external approval events. Status: Approved design.

Alternatives

[OWNER INPUT REQUIRED: alternatives considered in the design review.]

Consequences

The workflow can wait for a reviewer without occupying a request thread and can resume from durable state. Activities must be replay-safe. Payment calls require idempotency, and workflow state must be correlated with the claim.

Date and evidence

Decision date: [OWNER INPUT REQUIRED: decision date]. Evidence: repository GUIDE.md, sections 1 and 14. The guide explicitly assigns long-running state and approval waits to Durable Functions.