Skip to content
Theory · Asynchronous work · lesson 3 of 7

Repeats and idempotency

The queue from the last lesson loses no tasks, but it may hand out the same task twice. In an interview this is the next question after "and if a handler crashes?": what happens on a repeat. A strong answer is a handler that a repeat does no harm.

In this lesson

  • Three delivery guarantees
  • Where repeats come from
  • The idempotent handler
  • A repeat that will not help
  • Common mistake
  • Key points