In everyday life
The ticket dispenser at a deli counter: customers take a number, and staff serve one number at a time. A rush makes the wait longer, but nobody is turned away.
One case
A bank emails 6,000 monthly statements at 08:00, and its mail provider accepts 1,000 a minute. With no line to wait in, the bank sends them all at once; the provider takes 1,000 and rejects the other 5,000. With a queue, a worker sends 1,000 a minute and the last statement goes out at 08:06.
Every case
Work rarely arrives at an even pace. A queue absorbs the bursts: the sender adds a job and moves on, and each workerA program, or one part of a program, that takes one job at a time and does it. takes the next job when it is free. A crashed worker loses nothing when three things hold: the queue keeps its jobs on disk, a worker confirms a job only after it finishes, and the queue hands out unconfirmed jobs again. The price is delay, and a job can be handed out twice, so every job must be safe to run twice.
The word
Engineers call this
Put slow or bursty work on a queue. Watch how long the line gets, and make every job safe to run twice.