Node.js Delayed Public HTTPS Dispatch Explained for 10,000 Long-Running Property Jobs
go
dev.to
Short answer: use cron to discover work that is due, a durable queue to hold each cleanup attempt, and a public HTTPS endpoint only to accept or acknowledge work; make the database idempotency key, not the timer, the authority on whether a property-management cleanup has already run. That split resolves the important trade-off. A cron process is good at asking, "What is due now?" It is a poor place to hide 10,000 independent lease-cleanup timers. A queue is good at absorbing bursts and redelive