Skip to content
Theory · Notification system · lesson 7 of 11

Retries without duplicates

An accepted notification must not be lost, and the user must not see it twice. The first requirement means the system repeats a send until it succeeds. The second means every repeat has to be recognized and dropped. This lesson is about where repeats arise in our system, which key recognizes them and which duplicate still remains.

In this lesson

  • Where repeats come from
  • The first key: on accept
  • The second key: at the worker
  • Why the keys can live in Redis
  • The window that remains
  • Retries with a pause
  • Common mistake
  • Key points