Decouple Work From the Request That Starts It
A customer request does not always need to wait for every downstream task. A publishing system might accept a new lesson before its search index and notification are ready. Decoupling lets components progress at different speeds, but it also introduces retries, delays and failure handling.
A message can request work. An event can report that something happened. A workflow coordinates several steps. These terms describe different relationships; choosing a service requires knowing which relationship the application needs.
Read the Four Patterns

The SQS arrow follows one work item from a producer toward a worker. The SNS branches show publication to distinct subscribers. EventBridge's bus rules select matching destinations. Step Functions manages state and sequencing. The diagram does not require every application to connect all four in series.
Queue Work With SQS
SQS stores messages for consumers to receive. After successful processing, a consumer deletes the message. The visibility timeout hides a received message temporarily; it is not the same as deleting it.
Standard queues can deliver more than once and provide best-effort ordering. The application's handler should cope with repeated delivery, for example by recognizing a work identifier already completed. A FIFO choice changes ordering and deduplication behaviour, but is not a blanket guarantee that arbitrary downstream side effects happen only once.
A queue is also not an archive that retains unfinished messages forever. Retention and failure handling need decisions. A dead-letter queue can isolate repeated failures for investigation, but does not repair them.
Publish or Route Events
SNS uses topics and subscriptions to distribute messages. Several subscribers can each need a copy of a publication. This differs from workers competing to process items from the same queue. SNS and separate subscriber queues can be composed when independent consumers need buffering.
EventBridge event buses receive events and use rules to route matches to targets. This can connect AWS, custom and supported third-party event sources. Matching and permissions must be configured. Not every event has a matching application target. EventBridge also has other capabilities, but the bus example here teaches event routing rather than a universal work queue.
Coordinate a Workflow
Step Functions represents a process as states and transitions. A workflow can make choices, wait, invoke work and apply configured retry or error paths. It helps make sequencing explicit instead of hiding it across loosely coordinated calls.
The workflow type and integration determine behaviour. The service coordinates tasks; it does not make an incorrect task safe, invent a rollback operation or prove that an external action succeeded.
Work Through a Lesson Publisher
A publisher accepts a new lesson. Preparing a searchable text index is background work, so a queue can absorb a burst of publications while workers catch up.
A separate announcement must reach several independent consumers. A topic can distribute that publication; placing all consumers on one ordinary work queue would not express the requirement that each receive its own copy.
Now suppose only publications in a particular category should start a specialized action. An event rule can express that matching requirement. If publication requires a sequence of checks and an approval before release, workflow coordination addresses the sequence.
The publisher also needs a stable lesson identifier. If a worker times out after completing the update, retrying must not produce a second public entry. This is application-level correctness, not something to infer from a successful message send.
Keep a Work Identifier Through a Retry
This is an illustrative application message body. Its fields belong to the publisher, not to the SQS API schema.
{
"job_id": "index-lesson-024",
"lesson_id": "lesson-024",
"operation": "update-search-index"
}
The worker uses operation to identify the work and lesson_id to identify
its subject. The stable job_id gives the application a way to recognize a
repeated job. Merely including this field does not enable SQS deduplication
or make the worker's update safe.
Suppose the worker updates the index but loses its connection before deleting the message. Another delivery can carry the same completed job. A worker that checks its durable completion record or performs an idempotent update can avoid creating a second entry. Idempotent means repeating the operation has the same intended effect as applying it once. The application's storage and update design must make that true, including when two workers overlap.
Visibility timeout postpones another attempt; it cannot prove whether the external index update succeeded. Deleting a message before doing the work has the opposite danger: the queue may no longer have a retryable item after the worker fails. This is why receipt, processing and deletion are distinct steps.

Read the branches as alternatives, not steps every message follows. On the right, the worker might have failed before the update or after it; queue visibility alone cannot tell you which. The next attempt needs an application rule for recognizing completed work. Retention and configured dead-letter handling limit retries. Standard queues can also redeliver within the visibility window, so the diagram is one useful failure sequence, not an exactly-once promise.
Check Your Understanding
Three independent systems must each receive a publication notification. A proposal puts all three as competing consumers on one SQS standard queue and assumes that broadcasts every message to all of them. What should change?
Answer and Reasoning
The design needs publication to separate subscribers, such as an SNS topic with appropriate subscriptions and separate queues where buffering is required. Competing consumers on one queue do not provide broadcast semantics. Adding workers changes processing capacity, not that relationship. Repeated delivery from a standard queue is also not a deliberate copy for every subscriber.
References
Example-specific references checked on 8 October 2026:
Service references checked on 25 September 2026. No AWS resources are required for this lesson.