Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shipping Background Work

Sending the confirmation email later, resizing the uploaded image later, generating the monthly report at 2 a.m. without a human watching: anything that shouldn’t block the user’s request, or that needs to happen on a schedule rather than in response to one, is background work. Doing this well means a queue and a worker process, not a sleep() call and hope.