ExitAsynchronous Communication: the background job lifecycle1 / 9
Explanationassociate9 steps · 4 exercises

Accept the job without waiting for the result

How a job moves from acceptance through queued processing to a result or failure that the caller discovers by polling or notification, even when delivery is retried.

A background job separates submitting work from finishing it. This report API returns 202 Accepted with a job ID and status URL after it creates a job record and queues the work. Acceptance means the work was handed off, not that a report exists.

The job ID ties the queued message to the saved outcome, even if the message is delivered again. The diagram shows requests, deliveries, and data access. Ordinary HTTP responses return along the request path and aren't drawn separately.

submit or pollAPI requestcreate or readjob IDwork messagejob state accessredriven messageexhausted work messageconditional failure updatecompletion noticefailure noticesubscription email
Report callerUsers
Report API endpointAmazon API Gateway
Job API functionAWS Lambda
Job states and outcomesAmazon DynamoDB table
Standard work queueAmazon Simple Queue Service (Amazon SQS)
Report worker functionAWS Lambda
Dead-letter queueAmazon Simple Queue Service (Amazon SQS)
Failure reconciliation functionAWS Lambda
Completion topicAmazon Simple Notification Service (Amazon SNS)

Stage 1 of 8: The caller submits a report job and keeps the returned job ID and status URL.

Next up: Complete the diagram on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.