Backend Fundamentals · Work outside the request
Background jobs
A background job is work a request writes down and a worker does later. It can run twice, fail for good or wait for hours, so you design every job for that and watch its age.
- Time25 min
- LevelDeveloper
- Experiments1 live
- Check6 questions






User uploads a 200,000-row CSV and sees "import started" at once.
Workers claim chunks with SKIP LOCKED and upsert rows by their natural key.
Finish the last chunk marks the import done and enqueues the summary email.
Producers web handlers and other jobs that enqueue work.
Queue storage Redis, a broker or a jobs table; holds jobs durably.
Dead set jobs out of attempts, waiting for a person.
Monitoring age, throughput, failures and last successful run, per queue.