Job Queue
The waiting line where a system parks heavy work, like five hundred invoices, so the screens people use stay fast.
Also known as background jobs task queue worker queue
Definition
A job queue is a waiting line inside your software. Some work is too heavy to do while a person stares at the screen. Five hundred invoices. A month-end report. A message going out to nine thousand customers. The system drops that work into a line and does it in the background, one piece after another.
This is why the screen stays quick. When a staff member presses send on the invoice run, the button comes back in half a second. Nothing has been sent yet. The order has been written into the queue, and a separate part of the system, called a worker, picks up the first item and starts. The staff member goes back to serving people. The invoices go out over the next few minutes.
It also explains a thing customers complain about. The receipt email that lands a minute after payment is not broken. It is sitting behind other work. A well-built system keeps urgent jobs in their own fast line, so a password reset never queues behind ten thousand marketing emails. That split is a design decision, and it costs nothing extra if it is made at the start.
Jobs fail. The email provider refuses one message, the bank's server is down for two minutes, a file is missing. The question is what happens next. A sensible queue tries again a few times, waits a little longer between each try, then puts the failure somewhere a human will actually see it. Ask your supplier where that list lives and who reads it on a Sunday. Linkysoft has taken over systems where nobody could answer, and failed jobs had been piling up unseen for months.
Queues also need somewhere to run. The worker is a small program that has to stay alive day and night and start again by itself after a restart, which is a hosting question as much as a code question, and one reason Hostrena keeps those processes watched. When Linkysoft builds a web application, we usually ask which jobs may be an hour late and which must never be late at all. Owners rarely think about that, and it is the cheapest decision on the whole project.
Questions about Job Queue
Why does my confirmation email arrive a minute late?
What happens when a background job fails?
Does a job queue make my system faster?
Do queues need special hosting?
Still not sure how this applies to your project?
Tell us what you are building and we will answer in plain language.