ExitIdempotency: replay-safe data ingestion1 / 9
Explanation

Identify the event, not the delivery attempt

How stable event identifiers and atomic, idempotent writes prevent retries and pipeline replays from producing duplicate downstream effects. · associate

Idempotency means that processing the same logical event again does not add another intended effect. A worker can run twice while creating only one accepted-event row. This matters when a write succeeds but its response is lost: the worker cannot safely assume that failure to receive a response means nothing happened.

Give each logical event a stable event identifier before its first delivery, and preserve it through retries and stored replay data. A key such as sourceA:event-842 combines a source namespace with that source's event ID. A new random ID generated by each worker attempt identifies attempts, not events, and defeats duplicate detection.

The key must also distinguish legitimate events. Two updates to the same order need different event IDs; using only the order ID would suppress the second update. Replaying an existing update must preserve its original event ID.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.