Ravi Sir's Cards › AWS
How do you keep tasks idempotent?
This interview card answers: How do you keep tasks idempotent? Idempotent means retrying the same Task does not double-charge or double-insert. Use business keys, conditional writes, and Step Functions Retry only on safe errors. Payment Task keys on orderId so a retry after timeout does not bill twice.
Read card text
What this card says
What it is
Idempotent means retrying the same Task does not double-charge or double-insert.
idempotent
Why it matters
Use business keys, conditional writes, and Step Functions Retry only on safe errors.
How / example
Payment Task keys on orderId so a retry after timeout does not bill twice.