Why HTTP-Pushed Queue Workers Beat Database Polling for SaaS Digest Emails
A weekly customer digest must be sent exactly once per customer even though job delivery can happen more than once. The author recommends a queue that pushes jobs to an authenticated public HTTP worker, with delayed retries, a dead-letter queue, and a stable idempotency key. Database polling with a transactional outbox remains preferable when workers must stay on a private network or enqueueing must share a database transaction. The approach separates a planning record per digest from a delivery record per customer, so one rate-limited customer does not force a full rerun. Because timeouts can hide whether a provider accepted a message, the practical guarantee is at-least-once delivery combined with an idempotent handler.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in