Resilient Cloud Solutions

Billing and analytics services must each process every order event, scale independently, and retain pending events during service outages. Which messaging design best meets these requirements?

Show the answer

Correct answerB. An Amazon SNS topic subscribed to by a separate SQS queue for each service

AWhy not this: Alternating processing divides events between functions instead of delivering every event to each service.

BWhy this is right: Each subscribed queue receives a copy, buffers pending work, and supports independently scaled consumers.

CWhy not this: Consumers on one queue compete for messages, so both services would not receive every event.

DWhy not this: Direct HTTP delivery lacks a separate, consumer-controlled queue for each service's pending work.

SNS fanout to separate SQS queues gives each service its own durable event backlog and independent consumers. Workers sharing one SQS queue compete for messages instead of delivering every event to both services.