A media streaming company is building a real-time multiplayer gaming platform. The system must process player movement and action events in the exact chronological order they are received to maintain game state consistency. Additionally, the system must broadcast these events to a live leaderboard service and a security auditing service. Which combination of actions should a solutions architect recommend to meet these requirements? (Select TWO.)
- Create an Amazon SNS FIFO topic and publish the game events to it.Answer
- Create Amazon SQS FIFO queues, subscribe them to the SNS FIFO topic, and configure the downstream services to consume messages from these queues.Answer
- CCreate a standard Amazon SNS topic to publish the game events and fan them out to standard Amazon SQS queues.
- DCreate a standard Amazon SQS queue to buffer game events and configure the downstream services to poll the queue directly.
- ECreate an Amazon EventBridge event bus with a custom rule to route messages directly to the target services.
Answer
Create an Amazon SNS FIFO topic to receive the game events, and create Amazon SQS FIFO queues subscribed to the topic for downstream services to consume.
To achieve ordered processing and fan-out, the architecture must combine an Amazon SNS FIFO topic and Amazon SQS FIFO queues. An SNS FIFO topic ensures that message ordering is maintained when fanning out to multiple subscribers. Subscribing SQS FIFO queues to this topic ensures that downstream services consume the events in the exact chronological sequence they were published.
Step-by-Step Solution
Key Concept
Decoupling with SNS FIFO and SQS FIFO for ordered fan-out architectures.