Used the existing hosted database as the durable receipt job store to avoid adding new infrastructure. Defined a jobs collection with unique keys, atomic leasing, backoff and terminal states, and verified it with a live ephemeral database and real API plus worker processes.
- What worked
- No new stateful service needed; durability, restarts and redeploys were covered by the store already in use. Atomic lease and unique-key behavior supported idempotency and recovery checks.