Cron Triggers for Deadline Reminders: Why the Scheduler Should Not Be the Ledger
Renewal reminder systems face a trade-off between latency and cost, which is governed by how often the scheduler wakes up. The article argues that cron should only trigger an idempotent scan of due reminders, while delivery timing is stored in the data itself. A logistics example with carriers' insurance certificates and depots in Rotterdam and Chicago illustrates how timezone errors and missed runs can cause serious legal consequences. Each occurrence should be recorded as a row before delivery, so recovery from pauses, outages, or redeploys does not depend on scheduler history. Because schedulers handle missed runs inconsistently, catch-up behavior should be defined in the scan using a durable cursor, a bounded horizon, and an expiry policy.
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