Work that happens later: jobs and queues
Some work happens later, away from the screen. Learn why it can arrive twice, late or not at all, and how to test for each case.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a post box. You drop a letter in the box now. The letter is carried and delivered later. You cannot see the van or the sorting. If the box is full, or the van breaks down, nobody tells you at the box.
Daily List is a to-do list app. When Lily sets a reminder, the app does not send the email at that moment. It drops a note in a box, called a queue. A worker takes the note later and sends the email. Leo, the developer, built it this way so the screen stays quick.
Tom, the tester, worries about the road between the box and the door. What if the van takes the same letter twice? What if it gets lost? What if it arrives a day late?
This work that happens away from the screen is a . Tom learns that his checks must look at what happens later, not just at what the screen shows.
The picture has a limit. A real queue request can return an error or an acknowledgement. Check which state the app’s Saved message actually promises: saving the reminder, accepting the queue message and sending the email are separate observations. A letter is one thing that is carried once. A queue message can be copied, delivered twice, or held back on purpose. Also, a post office is slow, but a queue can work in less than a second.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 2 in this section
- post box
- a box in the street where you drop letters
- acknowledgement
- a reply saying a message was received or accepted
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Seeing work that happens later as letters in a post box, so a tester asks what happens when a letter comes twice, late or never.
- Twice
- Late
- Never
- Side box
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| A post box | The queue |
| A letter | A message or job note |
| The van and the sorting | The workers and the network |
| A box for letters that cannot be delivered | A configured dead-letter queue |
WHERE THIS PICTURE STOPS
- A queue may repeat a delivery; neither a letter nor a queue proves the intended business effect.
- A post office is slow, but a queue can work in a fraction of a second.
- A letter keeps its place, but queue messages may arrive out of order.
HOOK
Twice, late, never.
REMEMBER IT THIS WAY
A rule of thumb: if you see this, think that.
If work happens away from the screen, test the road between the box and the door.
| In the trick | What it stands for |
|---|---|
| The box | the note dropped in a queue |
| The door | the worker sends the email later |
A job that runs at once on the screen has no such road to test.
TELL A FRIEND
A post box. Ask what happens when a letter comes twice, comes late or never comes.
OFTEN MIXED UP WITH Microservices basics for testers. Microservices basics shows why one tap crosses many services. This lesson shows what happens when the work is done later.
PRACTISE AND KEEP
Sources for this topic — 10 sources
- Market practice
Amazon SQS queue types (Amazon Web Services documentation) ↗ — Amazon Web Services · Standard queues deliver each message at least once, so duplicates can occur, and consumers should be idempotent (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Using dead-letter queues in Amazon SQS ↗ — Amazon Web Services · A dead-letter queue holds messages that could not be processed after the allowed number of tries (search excerpt, page not opened)
One product's behaviour, used as an example. Defaults are not stated. Seen as WebSearch excerpts on the access date; the page was not opened.
8 November 2026: complete substantive primary DLQ guide read; configured redrive/access policies and receive counts; standard/FIFO retention differ. Numeric application failure counts do not establish queue movement.
- Market practice
Timeouts, retries and backoff with jitter (Amazon Builders Library) ↗ — Amazon · Retries should wait longer each time and add random delay so that they do not overload a struggling service (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Idempotent Receiver (Enterprise Integration Patterns) ↗ — Gregor Hohpe and Bobby Woolf · An idempotent receiver can safely get the same message more than once without a different result (search excerpt, page not opened)
A book catalogue of patterns, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Guaranteed Delivery (Enterprise Integration Patterns) ↗ — Gregor Hohpe and Bobby Woolf · Guaranteed delivery stores a message so that it is not lost if the system fails (search excerpt, page not opened)
A book catalogue of patterns, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.
- Market practice
Amazon SQS at-least-once delivery ↗ — Amazon Web Services · 8 November 2026: complete short primary at-least-once article opened; replicated copies can cause repeated delivery after receive/delete. Delivery scope is distinct from successful business effects.
8 November 2026: complete short primary at-least-once article opened; replicated copies can cause repeated delivery after receive/delete. Delivery scope is distinct from successful business effects.
- Market practice
Amazon SQS visibility timeout ↗ — Amazon Web Services · 8 November 2026: complete substantive visibility-timeout guide opened; receive leaves message retained, processing/deletion and timeout/redelivery differ. Later standard-queue duplicate caveat qualifies opening prevention shorthand. No service execution.
8 November 2026: complete substantive visibility-timeout guide opened; receive leaves message retained, processing/deletion and timeout/redelivery differ. Later standard-queue duplicate caveat qualifies opening prevention shorthand. No service execution.
- Market practice
Amazon SQS CreateQueue: queue attributes ↗ — Amazon Web Services · 8 November 2026: bounded CreateQueue Request Parameters read: MessageRetentionPeriod, VisibilityTimeout, RedrivePolicy and FIFO attributes. ReceiveCount exceeds configured maxReceiveCount; receive count is not a business-failure counter. No deployed-policy assertion.
8 November 2026: bounded CreateQueue Request Parameters read: MessageRetentionPeriod, VisibilityTimeout, RedrivePolicy and FIFO attributes. ReceiveCount exceeds configured maxReceiveCount; receive count is not a business-failure counter. No deployed-policy assertion.
- Market practice
Timeouts, retries, and backoff with jitter: original publisher PDF ↗ — Amazon Web Services · 8 November 2026: original publisher PDF Retries and backoff/Jitter sections read, SHA256 4d01d9878e0521a8a839d1043df9f4a2b28ef383e1978d2915507cbd9c0d8e32. Capped waits, bounded retries, jitter and side-effect uncertainty. Redirected web summary is not used as original text.
8 November 2026: original publisher PDF Retries and backoff/Jitter sections read, SHA256 4d01d9878e0521a8a839d1043df9f4a2b28ef383e1978d2915507cbd9c0d8e32. Capped waits, bounded retries, jitter and side-effect uncertainty. Redirected web summary is not used as original text.
- Market practice
Making retries safe with idempotent APIs ↗ — Amazon Web Services, Malcolm Featonby · 8 November 2026: primary Retrying and side effects, Reducing client complexity and semantic/lifetime boundaries read; original copyright-2020 publisher PDF pages 1–4 inspected. Token/state coordination, caller intent and limits; not a universal email-provider transaction.
Opened primary article after normal web search. Bank effect-boundary examples are editorial applications, not prescribed bank architecture.
8 November 2026: primary Retrying and side effects, Reducing client complexity and semantic/lifetime boundaries read; original copyright-2020 publisher PDF pages 1–4 inspected. Token/state coordination, caller intent and limits; not a universal email-provider transaction.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.