Design a Background Job Queue

Talk it through out loud with your AI coach.

The problem

  • medium
  • Pro

Your web app does slow work inside requests, like resizing images and generating invoices, so pages hang. Design a background job system that moves this work out of the request, retries failures and never loses a job.

What a strong answer covers

  • How slow work leaves the request and who picks it up.
  • How a job survives a worker crashing partway through.
  • Why a job might run more than once and how to make that harmless.
  • Handling jobs that keep failing and knowing when to add workers.

Common mistake: Assuming each job runs exactly once, so a retry sends a second invoice or does the work twice.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud