Retries and idempotency

Lesson 12 of 26 · Scale and reliability · 2 min Get the course to watch

A request to create a ticket times out. Did it fail, or did it succeed and the reply got lost? The client cannot know. If it retries, you might file two tickets. If it does not, you might file none. Networks make this ambiguity unavoidable, so the design has to make retrying safe.

The rest of this lesson

  • Idempotency keys
  • Making it hold
  • Retrying without a stampede
  • One layer only
  • The idea to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with System design for senior engineers, AI systems included.