Lesson 3.3

Idempotency and safe retries

Any request can be delivered twice. An idempotency key lets the second delivery return the first result instead of charging the card again.

Duration
8m
Level
Intermediate
Students
8.7k students

Overview

Any request can be delivered twice. An idempotency key lets the second delivery return the first result instead of charging the card again.

In this lesson you will:

  • Make write endpoints safe to retry
  • Accept and store idempotency keys
  • Retry with backoff and jitter, not in lockstep

Resources

AWS Architecture Center

The official reference for the tools used in this lesson.