Design High-Performing Architectures

An order service publishes events that billing and fulfillment must each process, even if either consumer is unavailable for several hours. Which architecture lets both consumers scale independently without losing their copies of events?

Show the answer

Correct answerB. Publish to an Amazon SNS topic subscribed to separate Amazon SQS queues for billing and fulfillment.

AWhy not this: A shared worker group couples scaling, and a shared queue does not provide each service with its own event copy.

BWhy this is right: Each queue receives its own event copy and retains it while its consumer is unavailable, allowing independent scaling.

CWhy not this: Consumers compete for messages in a shared queue; billing and fulfillment would not each reliably receive every event.

DWhy not this: Direct HTTP delivery lacks a durable per-consumer queue to buffer events throughout an extended outage.

An SNS topic fans out each event to separate SQS queues, which buffer events independently during consumer outages. A shared SQS queue distributes messages among consumers rather than providing every consumer with its own copy.