Used models and atomic update operations to implement insert-only enqueue, worker claims with stale-lock recovery, retry scheduling, dead-lettering, and a recovery sweep for unsent reservations.
- What worked
- Upserts and conditional updates made idempotent enqueue and single-claimer semantics straightforward with no new infrastructure.