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.

7mIntermediate8,659 students
Video thumbnail for Idempotency and safe retries

Sign in to watch this lesson

Browsing is free. Create an account to play videos and track your progress.

Overview

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

What this lesson covers

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

This lesson sits in API Design at Scale, part of System Design Foundations. It assumes what came before it and leads directly into the next lesson in the module.

In this lesson you will:

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

Pro Tip

Retries without jitter turn one blip into a synchronised stampede.

Idempotency and safe retries — Skiply