One event can lead to more than one attempt
Why a retry policy controls when and how often Lambda processing is reattempted, but idempotency determines whether those attempts repeat a side effect.
When you invoke AWS Lambda asynchronously, Lambda accepts the event into its own queue without waiting for the function to finish. Lambda processes the queued event separately. If the function fails, Lambda can invoke it again with the same event.
Here, a job-completion event carries the job ID. Each attempt uses that ID to set the same Amazon DynamoDB item to COMPLETE. The diagram shows two distinct jobs: Lambda manages the attempts, and the handler decides what each attempt writes.
Stage 1 of 4: Lambda holds the accepted event in its own asynchronous event queue.
Next up: Complete the diagram on what you just read.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.