Background Job
ELI5 — The Vibe Check
A background job is work your app does behind the scenes that the user doesn't wait for. Sending a welcome email, generating a PDF report, processing a payment — instead of making the user stare at a loading screen, you kick off a background job and respond immediately.
Real Talk
A background job is a task that runs asynchronously outside the main request/response cycle. It's added to a job queue and executed by a worker process. This pattern prevents slow operations from degrading API response times and improves user experience.
When You'll Hear This
"Sending the email as a background job — the user shouldn't have to wait for it." / "Background jobs handle all the post-purchase processing."
Related Terms
Cron Job
A cron job is a task that runs on a schedule automatically. 'Every day at midnight, clean up old sessions.' 'Every hour, send digest emails.
Message Queue
A Message Queue is a waiting room for tasks. Producers drop tasks in the queue, consumers pick them up and process them one at a time.
Queue
A queue is like a line at a coffee shop — first come, first served. The first person to get in line is the first to get their coffee.
Worker
A worker is a background process that picks up jobs from a queue and does the heavy lifting.