Troubleshooting and Optimization

An order service publishes events that billing and inventory must each process independently, including during temporary consumer outages. Which messaging design BEST meets these requirements?

Show the answer

Correct answerD. One SNS topic with a separate SQS queue per service

AWhy not this: Consumers sharing a queue compete for messages, so each service would not receive every event.

BWhy not this: Direct HTTP delivery lacks a separate durable queue backlog that each service can process after an outage.

CWhy not this: Alternating delivery divides events between services rather than delivering every event to each service.

DWhy this is right: Each subscribed queue receives events and retains its own backlog while its consumer is unavailable.

SNS fan-out to separate SQS queues gives each service its own durable event backlog. Consumers sharing one SQS queue compete for messages instead of each receiving every event.