Background jobs
Topics: Software development
Background jobs run work outside the immediate request and should recheck whether that work is still needed.
Reacting to change
When writing background jobs, make them resilient against change. It’s hard to cancel or reschedule jobs (don’t even try) but it’s easy to make them decide if they should still do their previously assigned work or not.