Catalogue / govuk-2020-email-alert-lost-jobs

GOV.UK builds its own recovery worker for lost Sidekiq email jobs instead of buying Sidekiq Pro, and makes the work idempotent

GOV.UK, 2020. Email Alert API background processing.

Organisation
GOV.UK
Evidence
Reported from production
Source
email-alert-api: 9. Sidekiq Lost Job Recovery

GOV.UK developer docs, published 2020-12-02 (ADR dated 2020-12-02; page last updated 4 Dec 2020 and warns it may be out of date)

Records

Decision#d1

Recover lost email jobs with an infrequent sweeper worker instead of buying Sidekiq Pro

Decision#d2

Make each worker idempotent with advisory locks for slow jobs and row locks for fast email jobs

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free.