Scheduling & Workflows

At-least-once job runner

A queue worker generates PDF invoices. It sometimes crashes after uploading to S3 but before ACKing the message, so the job runs twice. How do you prevent duplicate invoices?

Intermediate drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson