QuestionQ6

VerifiedDesign High-Performing Architectures

A company has an application that ingests incoming messages. Dozens of other applications and microservices then consume these messages quickly.

The number of messages varies drastically and sometimes suddenly increases to 100,000 each second. The company wants to decouple the solution and improve scalability.

Which solution meets these requirements?

Explanation

An Amazon SNS topic with multiple Amazon SQS queue subscriptions provides a scalable pub/sub fanout pattern. The producer publishes each message once to SNS, and SNS delivers copies to multiple SQS queues so each downstream application or microservice can process messages independently at its own rate. That design decouples publishers from consumers and allows each consumer tier to scale separately. A single Kinesis Data Streams shard cannot handle 100,000 messages per second, and Kinesis Data Analytics is for stream analytics rather than broad fanout consumption.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!