Let’s Get Certified
Module 17 / 20 · Cloud technology and services

Separate queues, notifications and event routing

Design independent delivery for subscribers and workers, then select services for end users, developers and devices.

An order must reach billing and shipping

After an order arrives, billing and shipping each need their own copy. Shipping also needs to survive a slow worker. Would one shared queue meet both requirements?

Fan-out notifications

A publisher can send one notification to a topic with multiple subscribers. Give each independent consumer its own SQS subscription queue when it must retain work. Email delivery for transactional messages is a separate SES use case.

Buffering work

A queue retains messages until workers process and delete them or retention expires. Consumers should tolerate redelivery, select an appropriate visibility timeout and decide how to isolate repeatedly failing work. Queues decouple the producers’ and consumers’ rates.

Work through the decision

Compare your reasoning

A shared queue distributes work among competing consumers and could give the order to just one team. Publish a notification to an SNS topic and give each team its own SQS queue. For routing across sources by event pattern, consider EventBridge. For customer email choose SES, and for a contact center evaluate Amazon Connect.

Change one constraint

Assign tools to four other requests from this product team.

Check your answer

Use CodeBuild for builds, CodePipeline for release stages and X-Ray for tracing. Amplify helps deploy a web or mobile frontend and IoT Core connects devices. For an end-user environment, compare WorkSpaces desktops, streamed apps and Secure Browser. For support assistance use the account’s support plan.

Revisit the demonstration

Messaging and event examples change the relationship between producers and subscribers. Check whether each consumer needs its own retained copy. Application Integration · 8:46:02.

The closing comparisons put similarly named messaging, delivery and configuration products next to each other. Explain who sends, who receives and whether work must be retained. Variation Study · 13:31:27.

Trace two independent acknowledgments

Billing and shipping must both process the same order. Predict what each consumer sees when billing succeeds immediately and shipping retries. Use two ordinary lists to model independent backlogs. Run the example locally with Python 3 or trace it on paper.

billing = ['order-17']
shipping = ['order-17']
billing.remove('order-17')  # Billing acknowledges its copy.
print('After billing:', billing, shipping)
print('Shipping retries:', shipping[0])
shipping.remove('order-17')
print('After shipping:', billing, shipping)
Check the output

Billing empties its queue while shipping still has order-17. Shipping can retry its own copy. A real SQS worker receives a message, acts idempotently and deletes it after success. The list models ownership of the backlog, without simulating visibility timeouts or delivery timing.

Sources and further practice

AWS exam guide for this objective · AWS documentation for this case

Compare the decision in the other cloud. Choose the management surface and repeat a deployment (AZ-900).

Knowledge check

Separate queues, notifications and event routing quiz

Answer 5 questions. Check each answer for an explanation.