Node.js Process Isolation — Simplest Backend for Daily Cleanup Report Email
Short answer: Don't keep the request open, and don't put the clock inside the web server. For one bounded daily cleanup report, let cron launch a separate Node.js command that claims the business date, performs the cleanup, sends the report, and exits; add a durable queue only when independent retries or parallel delivery justify the extra running system. That answer starts with isolation, not…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.