GOAT EngineerPreparing your learning space…

Practice problems · Topic

Idempotency problems

Covers dedup keys, exactly-once effects, outbox, change data capture.

Idempotency problems are about making a repeat harmless. Phones resend, workers crash after writing and before marking a job done, and a timeout hides whether a call landed, so the design needs a key the receiver remembers, or a write that carries its own version, so the second copy changes nothing.

Problems that need idempotency

  1. Third-Party API Rate Limits: Practice

    Your push provider refuses anything past 500 calls a second. Queue the work, pace workers to the limit, retry safely, and lose nothing when a worker dies.

  2. Retry a Payment Without Charging Twice

    A timeout does not say whether the charge happened. Retry it safely with idempotency keys, then test your design against a slow provider and hidden tests.

  3. Transactional Outbox: Practice Problem

    Save an order and tell Billing about it, even when the queue or Billing is down. Practise the transactional outbox, relays and harmless repeats.

  4. Exactly-Once Counts in a Stream: Practice

    Count every ad click once through crashes, resends and a full database. Practise stream processing, dedupe keys and saving your place with your totals.

By GOAT Engineer. Practice problems · Privacy Policy · Contact.