TOPIC 26/6214 MINNOT STARTED

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.

  1. Twice
  2. Late
  3. Never
  4. Side box
Three bad days

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A post boxThe queue
A letterA message or job note
The van and the sortingThe workers and the network
A box for letters that cannot be deliveredA 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.

What each part of the trick stands for
In the trickWhat it stands for
The boxthe note dropped in a queue
The doorthe 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
  1. 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)

    Says standard queues deliver each message at least once, so duplicates can occur and consumers should be idempotent. Practitioner guidance, not a standard. · Checked 2026-10-18

    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.

  2. 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)

    A cloud queue service guide. Cited for the redrive policy and the receive count. · Checked 2026-11-08

    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.

  3. 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)

    Engineering article. Says set a timeout on every remote call, retry only where it is safe, wait longer between tries and add randomness. Search excerpt only. · Checked 2026-10-18

    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.

  4. 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 pattern page from the same catalogue. Cited for tolerating duplicates. · Checked 2026-10-11

    A book catalogue of patterns, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.

  5. 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 pattern page from the Enterprise Integration Patterns catalogue. Cited for persistent messages and acknowledgement. · Checked 2026-10-11

    A book catalogue of patterns, not a standard. Seen as WebSearch excerpts on the access date; the page was not opened.

  6. 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.

    Bounded queue/retry engineering evidence for the selected Background Jobs lesson; service-specific conditions, not a guarantee of business completion. · Checked 2026-11-08

    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.

  7. 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.

    Bounded queue/retry engineering evidence for the selected Background Jobs lesson; service-specific conditions, not a guarantee of business completion. · Checked 2026-11-08

    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. 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.

    Bounded queue/retry engineering evidence for the selected Background Jobs lesson; service-specific conditions, not a guarantee of business completion. · Checked 2026-11-08

    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.

  9. 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.

    Bounded retry engineering evidence for the selected Background Jobs and Third-Party Connections lessons; service-specific conditions, not a guarantee of business completion. · Checked 2026-11-08

    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.

  10. 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.

    Engineering practice for safe retries, caller identity, atomic processing and late requests; not a payment scheme rule. · Checked 2026-11-08

    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.